Skip One iteration in nested For loop
We are implementing a framework in QTP the structure for which is as follows
'For loop for test suites
For i=0 to testsuitecount
'For loop for test cases in each test suite
For j=0 to testcasecount
'Function calls for the various functions
I have created a recovery function which gets called for any type of error.
If something goes wrong in execution I want to skip to the next iteration in test case loop.
How can I achieve that ??
The way which I think of is having a flag which I can set in recovery function and check for this flag in each function call.
However this seems a little tedious to me.
Kindly suggest a better approach.
Thank You for your time and help
You need to set the Test Settings to skip to next action iteration in case of errors