QTP???????????????
???????????? ???????[ 2013/11/8 10:52:07 ] ????????
??????QTP?У??????????????????????????κ????????Σ????????????????????????н??????????????datatable?????????б??????????????????в?????????????ж??
Dim url
url="C:Program FilesMercury InteractiveQuickTest Professionalsamplesflightappflight4a.exe"
if Dialog("text:=Login").Exist(1) then
OptionalStep.Dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set DataTable("p_Text"?? dtGlobalSheet)
OptionalStep.Dialog("text:=Login").WinEdit("attached text:=Password:").Set DataTable("p_Text1"?? dtGlobalSheet)
OptionalStep.Dialog("text:=Login").WinButton("text:=OK").Click
wait(1)
else
???????QTP?????????????????????ù????
systemUtil.Run url
OptionalStep.Dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set DataTable("p_Text"?? dtGlobalSheet)
OptionalStep.Dialog("text:=Login").WinEdit("attached text:=Password:").Set DataTable("p_Text1"?? dtGlobalSheet)
OptionalStep.Dialog("text:=Login").WinButton("text:=OK").Click
wait(1)
end if
????????
if Dialog("text:=Login").Dialog("text:=Flight Reservations").Exist(2) then
dim errorinfor??odesc
set desc=description.Create
odesc("text").value=DataTable("error"??dtGlobalSheet)
errorinfor=Dialog("text:=Login").Dialog("text:=Flight Reservations").Static(odesc).GetROProperty("text")
Dialog("text:=Login").Dialog("text:=Flight Reservations").WinButton("text:=???").Click
?????????Reporter???????÷?
Reporter.ReportEvent micDone??"????????????????????"??errorinfor
OptionalStep.Dialog("text:=Login").close
wait(1)
else
?????????????????????????????
If Window("text:=Flight Reservation").Exist(10) then
Reporter.ReportEvent micPass??"?????????"??"????????????"
Window("text:=Flight Reservation").close
wait(1)
Set desc=Nothing
end if
end if
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11