51Testing软件测试论坛
标题:
参数化问题,谢谢帮忙看下
[打印本页]
作者:
wangdongting
时间:
2009-1-12 15:02
标题:
参数化问题,谢谢帮忙看下
Window("Flight Reservation").Activate
Window("Flight Reservation").ActiveX("MaskEdBox").Type "022509"
Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("FlyFrom", dtGlobalSheet)
Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("FlyTo", dtGlobalSheet)
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").Activate
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "14243 DEN 12:57 PM FRA 01:41 PM SR $110.00"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Type "w"
Window("Flight Reservation").WinEdit("Name:").Set "w"
Window("Flight Reservation").WinRadioButton("First").Set
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").WinButton("Button").Click
但是run到红色那行出错,我应该怎么处理比较好呢?
作者:
李志智
时间:
2009-1-12 16:07
转换到 Keyword view 视图中,在value这一列单击 Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "14243 DEN 12:57 PM FRA 01:41 PM SR $110.00" 所对应的#号,弹出 value configuration option 对话框后,选择parameter->Random number。
把这段设置成随机数,你才能运行成功。
作者:
wangdongting
时间:
2009-1-13 18:11
谢谢,可以run了
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2