Window("Flight Reservation").Activate
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type "101010"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Denver"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "19716 FRA 01:24 PM DEN 02:07 PM LH $112.60"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "xsp"
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type micF4作者: xsp 时间: 2009-12-16 18:03
怎么没人理我了呢?作者: softCore 时间: 2009-12-16 23:41
msgbox Window("Flight Reservation").Dialog("Flights Table").WinList("From").GetItemsCount
请你测试一次这个代码,就知道处理Flights Table的办法。
OutputValue一般用来获取控件的值,所读取的值被作为临时变量放在datatable中,其实,只对fly from做参数化,是用不到outputvalue的。output在后面的fax才会用到,这个order number的output值获取的太关键了,被51的老师拿出来反复的讲。在这里再次感谢一下小红,祝你幸福哦。作者: xsp 时间: 2009-12-17 13:46 标题: 回复 5# 的帖子 非常感谢你的回答,再请问一下小红老师的课在哪听啊,是免费的不?有视频不?作者: liuxl 时间: 2009-12-17 16:08
output不但可以输出到datatable中,也可以输出到环境变量还有action输出值
作用:
1.可以作为后续的输入
2.可以作为软件运行的实际结果
3.作为后续操作的预期结果作者: xsp 时间: 2009-12-17 17:31
We can retrieve data(such as parameters) from my application and output it to the Data Table, using output values. This data can then be used at a later stage in the test. QuickTest displays the retrieved data, following the test run, in the Runtime Data Table.