Qtp
This is a discussion on Qtp within the Software Testing forums, part of the Testing category; I'm practicing QTP while installing the free trail version from Mercury site. My problem is: when i'm recording the sample ...
-
Qtp
I'm practicing QTP while installing the free trail version from Mercury site.
My problem is: when i'm recording the sample flight application it is doing good(the application given with that site as an example)....but when i start recording some other site like just say..some yahoo.com, it was just recoding the:
Login name.
password fileds.
sign in and sign out statements.
it is not recording the check mails option or what ever the other operations we do in the Inbox.
can any one tell me why is it so?
-
This happened beacuse recoding execute fastly. To avoid this use 'Delay' or 'Exist' property in all operations...
-
can u give an example for using "delay" property plz..
-
You can use any of them:
Procedure 1:
SystemUtil.Run "notepad","","C:\Documents and Settings\pranjul",""
Window("Notepad").WinEditor("Edit").Type "Using Wait Property"
wait(3) '3 means system wait for 3 second and then debug next line
Window("Notepad").Close
Window("Notepad").Dialog("Notepad").WinButton("No").Click
Procedure 2: using EXIST is more useful compare to WAIT as response time of server varies.
SystemUtil.Run "notepad","","C:\Documents and Settings\pranjul",""
Window("Notepad").WinEditor("Edit").Type "Using Wait Property"
If Window("Notepad").Exist then
msgbox "Notepad has been dispalyed, now executing next line...."
Window("Notepad").Close
Window("Notepad").Dialog("Notepad").WinButton("No").Click
else
msgbox "Notepad has not been dispalyed, so restart the process...."
SystemUtil.Run "notepad","","C:\Documents and Settings\pranjul",""
End if
-
Sponsored Ads


Reply With Quote





