QTP参数化实例——应用程序
上一篇 / 下一篇 2007-01-17 18:43:02 / 个人分类:QTP
相关阅读:
- Action级别的参数调用 (kevin_swpi, 2007-1-10)
- QTP的学习历程 (higkoo, 2007-1-10)
- 解决运行QTP IE进程不能启动的问题! (andy, 2007-1-11)
- 对象库的管理与合并 (ccc11yyy, 2007-1-11)
- Object Repository的一个Bug (ccc11yyy, 2007-1-11)
- QTP描述性编程原理介绍 (kevin_swpi, 2007-1-13)
- [原创]QTP中根据日期计算年龄的解决办法 (风过无息, 2007-1-13)
- QTP参数化实例(续) (xiaonan, 2007-1-16)
- 关于QTP的一些控件的操作 (kevin_swpi, 2007-1-17)
TAG: QTP
- 引用 删除 luochunfeng / 2012-02-16 20:07:38
-
哦,上面说错了,应该是“Business”标示不唯一,修改如下,已在9.2中验证了
Dialog("Login").WinEdit("Agent Name:").Set "ddddd"
Dialog("Login").WinEdit("assword:").SetSecure "45adf43a0fd43490f85d6c773e624a56d97576d1"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").ActiveX("MaskEdBox").Type "111111"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "20330 FRA 08:12 AM LAX 03:23 PM AA $112.20"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "123"
Dim i, b
For i = 1 to 3
Select Case i
Case 1 b = "First"
Case 2 b = "Business"
Case 3 b = "Economy"
End Select
Window("Flight Reservation").WinRadioButton("Business").SetTOProperty "text",b
Window("Flight Reservation").WinRadioButton("text"=&b).Set'
Next
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").Close
- 引用 删除 luochunfeng / 2012-02-16 18:13:12
- Next放这里不对吧
- 引用 删除 luochunfeng / 2012-02-16 18:12:43
-
评 1 分
标题搜索
日历
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
1 | 2 | 3 | 4 | 5 | 6 | ||||
7 | 8 | 9 | 10 | 11 | 12 | 13 | |||
14 | 15 | 16 | 17 | 18 | 19 | 20 | |||
21 | 22 | 23 | 24 | 25 | 26 | 27 | |||
28 | 29 | 30 |
我的存档
数据统计
- 访问量: 16276
- 日志数: 17
- 建立时间: 2006-12-05
- 更新时间: 2009-02-04