TA的每日心情 | 开心 2015-4-13 19:27 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
Dialog("Login").WinEdit("Agent Name:").Set "test"
Dialog("Login").WinEdit("Password:").SetSecure "5530f0abed3177193a7e1671d8d11034c4bd4891"
Dialog("Login").WinButton("OK").Click
Window("Flight Reservation").ActiveX("MaskEdBox").Type "061616"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "London"
Window("Flight Reservation").WinButton("FLIGHT").Click
Dialog("Flights Table").WinList("From").Select "13225 FRA 07:24 PM LON 08:07 PM AA $172.47"
Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "test1"
Window("Flight Reservation").WinEdit("Name:").Output CheckPoint("Name:") '使用datatable存储输出值
Window("Flight Reservation").WinButton("&Insert Order").Click
Window("Flight Reservation").WinButton("Button").Click
Dialog("Open Order").WinCheckBox("Customer &Name").Set "ON"
Dialog("Open Order").WinEdit("Edit").Set DataTable("datatable", dtLocalSheet) 'datatable参数化引用之前存储的输出值
Msgbox Datatable.RawValue("datatable","Action1") '这里会显示test1,而软件运行时输入的却还是test.
Dialog("Open Order").WinButton("OK").Click
Dialog("Search Results").WinButton("OK").Click
Window("Flight Reservation").Close
我使用弹出框命令显示输入test1,但是订票软件在运行的时候,我看到的却是test,这是为什么?datatable存的值,掉了,所以引用不了么?有其他的方面么?求大神,详细解答,感激不尽。
|
|