Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Popup process
#5
Not Solved
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
Reply


Messages In This Thread
Popup process - by bebeo - 10-05-2009, 02:41 PM
RE: Popup process - by Saket - 10-05-2009, 02:49 PM
RE: Popup process - by bebeo - 10-06-2009, 06:45 AM
RE: Popup process - by Saket - 10-06-2009, 10:05 AM
RE: Popup process - by bebeo - 10-07-2009, 10:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
MyBB how can i automatically click ok button in msgbox popup test 11 25,013 07-12-2022, 11:50 PM
Last Post: akash warke
  Close popup ad windows dustwynn 1 3,023 10-25-2016, 05:57 PM
Last Post: Ankur
  popup window takes a long time bistritapcv 4 3,621 04-17-2013, 09:35 PM
Last Post: bistritapcv
  QTP Opens a popup window but won't recognize the buttons in the window Blaster0007 4 7,949 07-20-2012, 12:03 AM
Last Post: sree.85
  Automating installation and uninstallation process ksrikanth2k9 0 2,563 04-02-2012, 12:08 PM
Last Post: ksrikanth2k9

Forum Jump:


Users browsing this thread: 3 Guest(s)