软件测试自动化问题
1、以下是qtp测试windows应用程序的测试脚本,解释每条语句的功能,并理解整个脚本的功能。Window("FlightReservation").WinButton...
1、以下是qtp测试windows应用程序的测试脚本,解释每条语句的功能,并理解整个脚本的功能。
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type "102511"
Window("Flight Reservation").WinObject("Date of Flight:").Check CheckPoint("Date of Flight:")
Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("Departure", dtGlobalSheet)
Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("Arrival", dtGlobalSheet)
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select RandomNumber(0, 100)
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "mm"
Window("Flight Reservation").WinEdit("Flight No:").Check CheckPoint("Flight No:")
Window("Flight Reservation").WinEdit("Flight No:").Output CheckPoint("Flight No:_2")
Window("Flight Reservation").WinEdit("Price:").Check CheckPoint("Price:")
Window("Flight Reservation").WinEdit("Price:").Output CheckPoint("Price:_2")
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").WinButton("Button_2").Click
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Customer Name").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "mm"
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Flight Date").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinObject("10/18/11").Type "101911"
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinList("Flight No.").Select RandomNumber(0, 100)
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinButton("OK").Click
分完事给,怕吞分 展开
Window("Flight Reservation").WinButton("Button").Click
Window("Flight Reservation").WinObject("Date of Flight:").Type "102511"
Window("Flight Reservation").WinObject("Date of Flight:").Check CheckPoint("Date of Flight:")
Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("Departure", dtGlobalSheet)
Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("Arrival", dtGlobalSheet)
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select RandomNumber(0, 100)
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "mm"
Window("Flight Reservation").WinEdit("Flight No:").Check CheckPoint("Flight No:")
Window("Flight Reservation").WinEdit("Flight No:").Output CheckPoint("Flight No:_2")
Window("Flight Reservation").WinEdit("Price:").Check CheckPoint("Price:")
Window("Flight Reservation").WinEdit("Price:").Output CheckPoint("Price:_2")
Window("Flight Reservation").WinButton("Insert Order").Click
Window("Flight Reservation").WinButton("Button_2").Click
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Customer Name").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "mm"
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Flight Date").Set "ON"
Window("Flight Reservation").Dialog("Open Order").WinObject("10/18/11").Type "101911"
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinList("Flight No.").Select RandomNumber(0, 100)
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinButton("OK").Click
分完事给,怕吞分 展开
2个回答
展开全部
Window("Flight Reservation").WinButton("Button").Click点击按钮
Window("Flight Reservation").WinObject("Date of Flight:").Type "102511"输入时间
Window("Flight Reservation").WinObject("Date of Flight:").Check CheckPoint("Date of Flight:")添加的检查点
Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("Departure", dtGlobalSheet)选择出发地的下拉列表
Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("Arrival", dtGlobalSheet)选择到达地的下拉列表
Window("Flight Reservation").WinButton("FLIGHT").Click点击FLIGHT按钮
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select RandomNumber(0, 100)显示航班列表并选择航班
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click点击OK按钮
Window("Flight Reservation").WinEdit("Name:").Set "mm"输入姓名
Window("Flight Reservation").WinEdit("Flight No:").Check CheckPoint("Flight No:")检查订单号
Window("Flight Reservation").WinEdit("Flight No:").Output CheckPoint("Flight No:_2")检查输出
Window("Flight Reservation").WinEdit("Price:").Check CheckPoint("Price:")检查票价
Window("Flight Reservation").WinEdit("Price:").Output CheckPoint("Price:_2")检查票价输出
Window("Flight Reservation").WinButton("Insert Order").Click点击Insert Order按钮
Window("Flight Reservation").WinButton("Button_2").Click点击按钮
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Customer Name").Set "ON"打开订单时选择姓名
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "mm"打开订单时输入姓名
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Flight Date").Set "ON"打开订单时选择日期
Window("Flight Reservation").Dialog("Open Order").WinObject("10/18/11").Type "101911"打开订单时输入日期
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click点击OK按钮
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinList("Flight No.").Select RandomNumber(0, 100)显示订单信息
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinButton("OK").Click点击OK按钮
整个脚本就是一个飞机订票,然后查看订单的操作
Window("Flight Reservation").WinObject("Date of Flight:").Type "102511"输入时间
Window("Flight Reservation").WinObject("Date of Flight:").Check CheckPoint("Date of Flight:")添加的检查点
Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("Departure", dtGlobalSheet)选择出发地的下拉列表
Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("Arrival", dtGlobalSheet)选择到达地的下拉列表
Window("Flight Reservation").WinButton("FLIGHT").Click点击FLIGHT按钮
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select RandomNumber(0, 100)显示航班列表并选择航班
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click点击OK按钮
Window("Flight Reservation").WinEdit("Name:").Set "mm"输入姓名
Window("Flight Reservation").WinEdit("Flight No:").Check CheckPoint("Flight No:")检查订单号
Window("Flight Reservation").WinEdit("Flight No:").Output CheckPoint("Flight No:_2")检查输出
Window("Flight Reservation").WinEdit("Price:").Check CheckPoint("Price:")检查票价
Window("Flight Reservation").WinEdit("Price:").Output CheckPoint("Price:_2")检查票价输出
Window("Flight Reservation").WinButton("Insert Order").Click点击Insert Order按钮
Window("Flight Reservation").WinButton("Button_2").Click点击按钮
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Customer Name").Set "ON"打开订单时选择姓名
Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "mm"打开订单时输入姓名
Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Flight Date").Set "ON"打开订单时选择日期
Window("Flight Reservation").Dialog("Open Order").WinObject("10/18/11").Type "101911"打开订单时输入日期
Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click点击OK按钮
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinList("Flight No.").Select RandomNumber(0, 100)显示订单信息
Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinButton("OK").Click点击OK按钮
整个脚本就是一个飞机订票,然后查看订单的操作
力控科技
2024-08-19 广告
2024-08-19 广告
1、Pentium IV以上的IBM微型机及其兼容机、工控机;2、至少512M内存(RAM);3、至少60G硬盘;4、VGA或SVGA的各种类型的显示器;5、并行打印口;6、标准鼠标和键盘;7、WINDOWS NT/2000/2003/XP...
点击进入详情页
本回答由力控科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询