10.19
来源:互联网 发布:10月份淘宝活动 编辑:程序博客网 时间:2024/06/11 04:30
Window("Flight Reservation").ActiveX("MaskEdBox").Click 8,2
Window("Flight Reservation").ActiveX("MaskEdBox").Type micBack
Window("Flight Reservation").ActiveX("MaskEdBox").Type "101815"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Paris"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "13566 FRA 08:00 AM PAR 11:30 AM SR $169.70"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "LIUJIE"
Window("Flight Reservation").WinRadioButton("First").Set
Window("Flight Reservation").WinButton("Insert Order").Click
pricetext=Window("Flight Reservation").WinEdit("Price:").GetROProperty("text")
'取值price
price=mid(pricetext,1)
'弹出票价对话框
msgbox "price:"&price
Dim price,num,total,real
'取值Tickets
num1 = Window("Flight Reservation").WinEdit("Tickets:").GetROProperty("text")
'弹出票的张数对话框
msgbox "Tickets:" &num1
price1=Window("Flight Reservation").WinEdit("Price:").GetROProperty("text")
'取值Total
total1=Window("Flight Reservation").WinEdit("Total:").GetROProperty("text")
price = cdbl(mid(price1,2))
num = cint(num1)
total =cdbl(mid(total1,2))
real = price*num
'比较Price*Ticket的价格是否等于Total
If abs(total-real) <0.001Then
Reporter.ReportEvent micPass, "success", "订票正确"
msgbox "订票正确"
else
Reporter.ReportEvent micFail, "fail", "订票错误"
msgbox "订票错误"
End If
Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"
Window("Flight Reservation").ActiveX("MaskEdBox").Type micBack
Window("Flight Reservation").ActiveX("MaskEdBox").Type "101815"
Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"
Window("Flight Reservation").WinComboBox("Fly To:").Select "Paris"
Window("Flight Reservation").WinButton("FLIGHT").Click
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "13566 FRA 08:00 AM PAR 11:30 AM SR $169.70"
Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click
Window("Flight Reservation").WinEdit("Name:").Set "LIUJIE"
Window("Flight Reservation").WinRadioButton("First").Set
Window("Flight Reservation").WinButton("Insert Order").Click
pricetext=Window("Flight Reservation").WinEdit("Price:").GetROProperty("text")
'取值price
price=mid(pricetext,1)
'弹出票价对话框
msgbox "price:"&price
Dim price,num,total,real
'取值Tickets
num1 = Window("Flight Reservation").WinEdit("Tickets:").GetROProperty("text")
'弹出票的张数对话框
msgbox "Tickets:" &num1
price1=Window("Flight Reservation").WinEdit("Price:").GetROProperty("text")
'取值Total
total1=Window("Flight Reservation").WinEdit("Total:").GetROProperty("text")
price = cdbl(mid(price1,2))
num = cint(num1)
total =cdbl(mid(total1,2))
real = price*num
'比较Price*Ticket的价格是否等于Total
If abs(total-real) <0.001Then
Reporter.ReportEvent micPass, "success", "订票正确"
msgbox "订票正确"
else
Reporter.ReportEvent micFail, "fail", "订票错误"
msgbox "订票错误"
End If
Window("Flight Reservation").WinMenu("Menu").Select "File;New Order"
0 0
- 10.19
- 10.19
- 10.19
- 10.19
- 10.19
- 10.19
- 10.19
- 10.19
- 10.19
- 10.19
- 10.19
- 10.19
- 10.19囧太鼓
- 习题10.19
- 笔试10.19
- 10.19周四
- 10.19 信号_sleep函数
- 习题10.18、10.19
- SQL Server系统表sysobjects介绍与使用
- Android循序渐进 - 4.1.2 Android四大组件之-Activity(初窥门径)
- LRU是如何操作的
- 关于C++中类类型转换操作符总结
- 分享8年开发经验,浅谈java程序员职业规划
- 10.19
- 直接插入排序(OC实现)
- linux 目录与文件
- Java基础---String类和基本数据类型包装类
- CHAR和HEX互相转换
- Android自定义控件之TextView的展开与折叠
- C#时间戳
- javascript中的两种比较符号
- 写下我的2015年自考