Recent Post

QTP @ Synchronization @ Script Demo


QTP @ Synchronization @ Script Demo

'*******************************************
'QTP @ Synchronization @ Script Demo
'*******************************************

'********************************************
'QTP @ Synchronization > Wait Method Demo
'********************************************
SystemUtil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
wait(2)

'********************************************
'QTP @ Synchronization > WaitProperty Method Demo
'********************************************
LoginExist=Dialog("Login").WaitProperty("enabled",10): msgbox "LoginExist" & LoginExist

'********************************************
'QTP @ Synchronization > Exist Method Demo
'********************************************
If Dialog("Login").Exist Then
Dialog("Login").Activate
Dialog("Login").WinEdit("Agent Name:").Set "QuickTest"
Dialog("Login").WinEdit("Agent Name:").Type  micTab
Dialog("Login").WinEdit("Password:").SetSecure "4cff4da856c61fe63bc04099938e4b492de78365"
Dialog("Login").WinButton("OK").Click
wait(5)
'********************************************
'QTP @ Synchronization > WaitProperty Method Demo
'********************************************
st1=Window("Flight Reservation").WaitProperty ("visible",true,1500000)
MsgBox st1
Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"
else
MsgBox " Nothing I can do here"

End If


0 comments:

Post a Comment

GAReddy @ OneTestingCenter @ All Articles