QTP测试实验
来源:互联网 发布:淘宝网开衫 编辑:程序博客网 时间:2024/06/08 06:53
Dialog("Login").WinEdit("Agent Name:").Set DataTable("agentname", dtLocalSheet)Dialog("Login").WinEdit("Password:").Set DataTable("password", dtLocalSheet)Dialog("Login").WinButton("OK").ClickWindow("Flight Reservation").ActiveX("MaskEdBox").Type DataTable("time", dtLocalSheet)Dim n1,Rdm_flyfromn1=Window("Flight Reservation").WinComboBox("Fly From:").GetROProperty("items count")RandomizeRdm_flyfrom=RandomNumber(0,n1-1)'msgbox(Rdm_flyfrom)Window("Flight Reservation").WinComboBox("Fly From:").Select (Rdm_flyfrom) wait(2) Dim n2,Rdm_flyton2=Window("Flight Reservation").WinComboBox("Fly To:").GetROProperty("items count")RandomizeRdm_flyto=RandomNumber(0,n2-1)'msgbox(Rdm_flyto)Window("Flight Reservation").WinComboBox("Fly To:").Select (Rdm_flyto) wait(2)Window("Flight Reservation").WinButton("FLIGHT").ClickWindow("Flight Reservation").Dialog("Flights Table").WinList("From").Select 1Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").ClickWindow("Flight Reservation").WinEdit("Name:").Set DataTable("name", dtLocalSheet)Window("Flight Reservation").WinEdit("Tickets:").SetSelection 0,1Window("Flight Reservation").WinEdit("Tickets:").Set DataTable("tickets", dtLocalSheet)Dim i,bi=RandomNumber(1,3) Select Case i Case 1 b="First" Case 2 b="Business" Case 3 b="Economy"End SelectWindow("Flight Reservation").WinRadioButton(b).SetWindow("Flight Reservation").WinButton("Insert Order").Clickwait(10)Dim RecordNoRecordNo=Window("Flight Reservation").WinEdit("Order No:").GetROProperty("text") Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..."Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Order No.").Set "ON"Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set RecordNoWindow("Flight Reservation").Dialog("Open Order").WinButton("OK").ClickWindow("Flight Reservation").Close
0 0
- QTP测试实验
- QTP自动化测试流程
- QTP自动化测试流程
- 高效QTP测试服务
- 自动化测试----QTP
- QTP与手机测试
- QTP Flex测试
- QTP测试Yahoo邮箱
- QTP测试Windows计算器
- QTP测试WinToolbar控件
- QTP自动化测试进阶
- qtp 回归测试过程
- QTP测试框架
- QTP自动化测试实践
- QTP自动化测试实践
- QTP-自动化测试流程
- QTP测试webservice
- QTP 测试识别dropdownlist
- [FAQ14188]SensorService发生NE分析
- animation中CrossFade的问题
- 安卓顶部标题栏随页面的滑动渐变
- undefined reference to错误的解决方法
- SQLSERVER SQLServer导入mdf和ldf的方法
- QTP测试实验
- maven 最佳实践:版本管理
- Tomcat中JVM内存溢出及合理配置
- 【R语言】【规范】编程规范
- 如何配置Mysql慢日志
- sqlserver中的CAST()函数
- oracle 会话参数
- 经典迷宫算法
- 【LeetCode】马三来刷题之 Single Number