函数库
来源:互联网 发布:2017最新网络热门话题 编辑:程序博客网 时间:2024/04/30 10:14
SystemUtil.Run "C:\Program Files (x86)\HP\Unified Functional Testing\samples\flight\app\flight4a.exe"
var_login=login("name","mercury")
'@Description 飞机订票系统登录函数
Public Function login(ByRef name, ByRef password)
' TODO: add function body here
Dialog("Login").WinEdit("Agent Name:").Set name
Dialog("Login").WinEdit("Password:").set password
Dialog("Login").WinButton("OK").Click
End Function
Window("Flight Reservation").Activate
Window("Flight Reservation").WinObject("Date of Flight:").Type DataTable("p_KeyboardInput", dtGlobalSheet)
Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("p_Item", dtGlobalSheet)
Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("p_Item1", dtGlobalSheet)
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "cat"
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order No.").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "12"
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
RunAction "Copy of 04_Logout [text02]", oneIteration
Window("Flight Reservation").Move 378,140
Window("Flight Reservation").Close
- 函数库
- 函数库
- 函数库
- 函数库
- 函数库
- 函数库
- 公用函数库
- javascript函数库
- 网络函数库
- 网络函数库
- 网络函数库
- javascript函数库
- javascript函数库
- javascript函数库
- javascript函数库
- javascript函数库
- 文件系统函数库
- javascript函数库
- 分清EMC EMI EMS有何不同?
- Android 属性动画ValueAnimator和ObjectAnimator的高级用法
- TextView设置setCompoundDrawables或setCompoundDrawablesWithIntrinsicBounds区别
- IOS开发之自定义系统弹出键盘上方的view
- javascript基础之九(JavaScript数据封装)
- 函数库
- 一对多映射的测试
- javascript基础之十(基于原型实现类的继承)
- 使用Java调用linux命令ffmpeg
- java基于Axis2调用C#开发的web service获取xml结果
- 对称加密和分组加密中的四种模式(ECB、CBC、CFB、OFB)
- javascript基础之十一(基于Object.create()实现类的继承)
- 关于滑动切换页面swiper的坑
- javascript基础之十二(JavaScript的代码容器)