Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Query:Recovery Scenario
#1
Solved: 10 Years, 10 Months, 3 Weeks ago
Hello,

i have implemented Recovery scenario in my scripts in the following way:
Error handling on error

Code:
call ActionOnError (err.number, err.Description)

'Error handling on succes
Call ActionOnSuccess

Sub ActionOnSuccess
   reporter.ReportEvent 0,"Verifying that Action has rendered any error","NO,It is a SUCCESS"
End Sub

'Name:Recovery scenario subroutine
Sub ActionOnError(errNumber, errDesc)
If errNumber <> 0 Then
Reporter.ReportEvent micFail,"Login",errDesc
ExitAction(0)
End If
End Sub

is it the right way of error handling?also what should be the optimum Test settings in RUN tab for "When error occurs in run sessionTongueop-up message should appears,stop the run,proceed to next iteration.proceed to next step"
I am working on java (Windows base application) with QTP9.2 version.Should recovery scenarios be used instead of the above mentioned code snippet?
Please advise asap.

Regards,
Rachna
Reply


Messages In This Thread
Query:Recovery Scenario - by Rachna - 03-27-2009, 10:19 AM
RE: Query:Recovery Scenario - by Rachna - 03-30-2009, 10:33 AM
RE: Query:Recovery Scenario - by sreekanth chilam - 03-30-2009, 12:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Video of a scenario shivangshah 0 1,156 01-30-2017, 07:45 PM
Last Post: shivangshah
  Query regarding "Call" statement anupam4j 1 1,927 09-26-2014, 01:46 PM
Last Post: vinod123
  Default recovery scenario TurtleRock 1 2,837 05-30-2014, 02:17 PM
Last Post: Tarik Sheth
  Edit Recovery Scenario skegler 0 3,136 03-05-2014, 10:40 PM
Last Post: skegler
  Data Table Query Suma Parimal 4 4,562 01-21-2014, 12:50 PM
Last Post: Suma Parimal

Forum Jump:


Users browsing this thread: 1 Guest(s)