Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Recovery Scenario
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Vamshi,

I created one subroutine instead of Recovery scenario.I am calling that subroutine when each and every action is completed.If the action is correct then only it goes to next step otherwise it exits from the action and test itself.

Here is the sloution:

Code:
Sub ActionOnError(errNumber, errDesc)
   If errNumber <> 0  Then
        Reporter.ReportEvent micFail,"Login",errDesc
        ExitAction(0)
    End If  
End Sub

Sub ActionOnSuccess
        Reporter.ReportEvent micPass,"Login","Login Processed Successfully"
        ExitAction(1)
End Sub

Call this subroutine in each action.

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

Please let me know if you find any issues.


Thanks
Navitha.
Reply


Messages In This Thread
Error Recovery Scenario - by vamshiram - 07-23-2008, 09:34 PM
RE: Error Recovery Scenario - by navitha123 - 07-23-2008, 10:38 PM
RE: Error Recovery Scenario - by navyasatish - 07-24-2008, 10:57 PM
RE: Error Recovery Scenario - by vamshiram - 07-25-2008, 02:47 PM
RE: Error Recovery Scenario - by navyasatish - 08-01-2008, 02:51 AM
RE: Error Recovery Scenario - by vamshiram - 08-18-2008, 04:26 PM
RE: Error Recovery Scenario - by sucheta - 08-04-2017, 07:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not Able to Identify Object during Recovery Scenario Phani 2 3,328 01-25-2016, 01:26 PM
Last Post: arunshuklainbox
  Recovery scenario for Certificate Error: Continue to this website SaiJyothsana 3 5,149 07-05-2011, 07:33 PM
Last Post: rajpes
  Move to next iteration of for loop after Recovery scenario zoomintodepth 0 5,089 01-28-2011, 01:13 PM
Last Post: zoomintodepth
  Secure QTP Code and Error Handling Scenario. knarravu 0 4,185 11-02-2010, 12:40 AM
Last Post: knarravu
  Recovery Scenario and Error Statements sunny rao 0 1,901 01-08-2009, 07:43 PM
Last Post: sunny rao

Forum Jump:


Users browsing this thread: 2 Guest(s)