Please ensure to include your code between [code][/code] tags while asking or replying to questions.

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Exception Handling in QTP

12-21-2010, 03:59 PM
Post: #1
Not Solved Exception Handling in QTP

Hi All,

I want to know the situation.

Suppose when we navigae to different pages in web application, and that pages use SSL at that time Window pop ups stating sometihing like ' The page you are moving is Secuure. R u want to continue'.

How we can handle this ?
I know we can handle this by simpel If ...else statment. But i want to know Should On Error Resume Next handle the situation ?

Or Recovery scenario is more useful for this ?

Another Question on Recovery Scenario, as per my knowledge we have to use it when we cannot predict at which step the error will occur.
But we know the type of error right ? I mean Certain Run time error, Certain Pop up ? So have those objects added in our OR to recover from the error . Am I right ?
Find all posts by this user
Quote this message in a reply
12-22-2010, 09:52 AM
Post: #2
Not Solved RE: Exception Handling in QTP
Hi,

In such scenarios its preferred to use If ... Else... statement. Using Recovery scenario will slow down the script execution.

Regards,
Manish
Find all posts by this user
Quote this message in a reply
12-22-2010, 10:05 AM
Post: #3
Not Solved RE: Exception Handling in QTP
Thanks Manish.
One qnother Query on Recovery scenario, As i mention we used it if we are not certain at which step the error will occur.
In practical scenario it may be the case that any type of error will occur. We dont know what it may be, it may be script error, it may be pop up. What if such type of error are not covered in Recovery scenario. How we can proceed this.
I didnt have any practical situation came across so I am curious on this ?

Thanks

Sudhir
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  External component has thrown an exception. mharps 1 334 05-28-2014 10:07 AM
Last Post: mharps
  Handling .NET framework menu in webpage using QTP 10 vishnu1067 0 216 05-15-2014 05:30 PM
Last Post: vishnu1067
  Handling tabout in QTP ra.dineshkumar@gmail.com 2 536 10-17-2013 09:21 PM
Last Post: ra.dineshkumar@gmail.com
  Handling mutiple browsers with QTP suresz449 3 2,625 08-19-2011 02:26 PM
Last Post: sshukla12
Exclamation RE: QTP - Exception Handling Unleash Rajesh 2 2,528 07-05-2011 08:54 PM
Last Post: rajpes



User(s) browsing this thread: 1 Guest(s)