zoukankan      html  css  js  c++  java
  • 18.3.5 测试DevComponents的hScrollBarAdv控件(2)

    18.3.5  测试DevComponents的hScrollBarAdv控件(2)

    Configuration.xml文件的内容如下所示:

    1. <!-- Merge this XML content into file "<QuickTest Professional>dat SwfConfig.xml". --> 
    2.   <Control Type="DevComponents.DotNetBar.ScrollBar.HScrollBarAdv" MappedTo="SwfScrollBar"
    3.     <CustomRecord
    4.       <Component
    5.         <Context>AUT</Context
    6.         <DllName>E: mpQuickTestCustomServer_vScrollBarAdv_hScrollBarAdvQuickTestCustomServer_vScrollBarAdv_hScrollBarAdvBinQuickTestCustomServer_vScrollBarAdv_hScrollBarAdv.dll</DllName
    7.         <TypeName>QuickTestCustomServer_vScrollBarAdv_hScrollBarAdv.ScrollBar</TypeName
    8.       </Component
    9.     </CustomRecord
    10.     <CustomReplay
    11.       <Component
    12.         <Context>AUT</Context
    13.         <DllName>E: mpQuickTestCustomServer_vScrollBarAdv_hScrollBarAdvQuickTestCustomServer_vScrollBarAdv_hScrollBarAdvBinQuickTestCustomServer_vScrollBarAdv_hScrollBarAdv.dll</DllName
    14.         <TypeName>QuickTestCustomServer_vScrollBarAdv_hScrollBarAdv.ScrollBar</TypeName
    15.       </Component
    16.     </CustomReplay
    17. <!--<Settings
    18.        <Parameter Name="sample name">sample value</Parameter
    19.     </Settings> --
    20.   </Control

    在完成了对hScrollBarAdv控件的插件扩展开发并成功部署后,即可在QTP中录制出如下所示的控制hScrollBarAdv控件的脚本:

    1. SwfWindow("Form1").Activate  
    2. SwfWindow("Form1").SwfScrollBar("hScrollBarAdv1").SetValue "44" 

    可见,对hScrollBarAdv控件的拖动可以通过设置精确的位置值来达到,而不是通过鼠标拖拽或者键盘操作,并且支持录制生成脚本。

    http://book.51cto.com/art/201208/352942.htm

  • 相关阅读:
    在Windows下Mysql如何重置root用户密码
    textrendering 详解
    修复IE6 PNG不透明问题的最佳解决方案
    机电传动控制第一周学习笔记
    WEB架构师成长之路之二大牛的法宝
    WEB架构师成长之路之一走正确的路
    WEB架构师成长之路之三架构师都要懂哪些知识
    hdu 1081 To The Max(最大子段和的升级版,二维)
    hdu 1080 (DP LCS最长公共子序列)
    添加\删除注册表项
  • 原文地址:https://www.cnblogs.com/gdg87813/p/10956365.html
Copyright © 2011-2022 走看看