Micro Focus QTP (UFT) Forums
Popup process - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Popup process (/Thread-Popup-process)



Popup process - bebeo - 10-05-2009

Code:
Browser("Breaking news, Latest").Page("Breaking news, Latest").Sync
Browser("Breaking news, Latest").Navigate "http://www.rediff.com/"
wait(10)
Browser("Breaking news, Latest").Page("Breaking news, Latest").WebEdit("srchword").Set ""'I am doing a test on qtp"
Browser("Breaking news, Latest").Page("Breaking news, Latest").WebButton("Search").Click
Popup "Please enter search Keyword"
How I was Processed pop up?


RE: Popup process - Saket - 10-05-2009

what do you mean by "How I was processed popup?" exactly what do you want ask here.
Please elaborate your post with a proper query.
do you want to say you are getting an unexpected popup? or you want a popup to display the string?

also the code seems to be incorrect.


RE: Popup process - bebeo - 10-06-2009

do you want to say you are getting an unexpected popup?
Thanks!


RE: Popup process - Saket - 10-06-2009

what is this?

is this a reply to my last post?


RE: Popup process - bebeo - 10-07-2009

Quote:
A object not found in repository will never cause an error as QTP treats it at a level of syntax error in the script which does not fire any kind of recovery scenario and always are thrown by QTP. And i believe QTP will also not catch x = 2/0 which is a division by zero error as they are caught in VBScript.

QTP can only fire a recovery scenario if the statment involves a QTP Test object (excluding object not in OR)

Try this

X = 2 / 0 'Will not activate the scenario. Click skip for this

Browser("asdsdsdsad").close 'Will not activate the scenario...click skip for this

Browser("name:=asdhasdgsja").close 'this will activate the recovery scenario.



QTP is not firing Recovery Scenario on statement
Browser("name:=asdhasdgsja").close

1.Scenario
>> Test Run Error(Error - Any error)
>> Recovery (Function Call - RecoveryFunction1)
>> Post recovery option - Repeat current step and continue

2.My function(testing purpose)
Function RecoveryFunction1(Object)
Msgbox "Jitesh1"
End Function

It is not displaying message box "Jitesh1" for Browser("asdsdsdsad").close

Make sure i have attached correspond recovery scenario in the test.

Post Extras: Print Post Remind Me! Notify Moderator