Custom Recovery Operation
Is there any way to count execution of recovery scenario, if yes then how to do it?
My idea behind this is I wrote a very complex test which has to sync for long time because sometime my browser take lots of time to complete 1 transaction
This case QTP 9.2 is throwing “General Runtime Error”
I want to click on Retry button and execute the same step again
I am running this test in Loop
Now what is happening here if I do it and some other similar error will occurs then it repeat recovery operation again and again and do not proceed to the next step
<font class="small">Code:</font><hr /><pre>
Post-recovery operation: Repeat current step and continue.
Activated by trigger:
Type: Test run error
The error string: Any error
The current test step details:
Result: Exception occurred
I want to handle recovery to be handle maximum of three time in one loop and then I just want to skip this step and execute another and want to write a custom log
Please also help if there are any other ways to handle this problem
Re: Custom Recovery Operation
Create a recovery function and provide the statement to click on Retry button.