|
7#
楼主 |
发表于 2008-9-3 16:49:32
|
只看该作者
这是action1
Dialog("Login").Check CheckPoint("Login")
Dialog("Login").WinEdit("Agent Name:").Set "tyhtyh"
Dialog("Login").WinEdit("Password:").SetSecure "48bdfdcfd2553e9cf85a4b16c27ccac9e2e5cb1d"
Dialog("Login").WinButton("OK").Click
这是action2
For i=1 to DataTable.GetRowCount
Window("Flight Reservation").ActiveX("MaskEdBox").Type DataTable("Date_of_flight", dtGlobalSheet)
Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("Fly_from", dtGlobalSheet)
Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("Fly_to", dtGlobalSheet)
Window("Flight Reservation").WinButton("FLIGHT").Click
ItemCount=Window("Flight Reservation").Dialog("Flights Table").WinList("From").GetItemsCount'取得航班列表的行数
SelectItem=RandomNumber(0,ItemCount)'随机选取其中一项
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select SelectItem'选择航班
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "tyh"
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").Activate
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").Activate
NEXT
小箭头指示第一条数据执行四遍,执行完之后又到action1,然后报不能识别的那个错误,我的date table有四条数据,为global,file里面的setting设置的是run on all rows,action里设置的都是run one,是什么问题啊?谢谢 |
|