07-23-2008, 10:38 PM
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:
Call this subroutine in each action.
Please let me know if you find any issues.
Thanks
Navitha.
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.