Forum Discussion
Finan
14 years agoFrequent Contributor
To answer the other question, (AFAIK) there is no method in the API to access the "continuous loop" button on testcase level.
So you are best off with creating your own method/logic to achieve this.
I take it that you want to stop the loop if the testcase fails?
There are a few different tactics for this:
1. Easiest would be to add a groovy script at the end of the testCase and add as code: testRunner.gotoStepByName("testStep1Name")
2. Other tactic would be the script from pradeep.
So you are best off with creating your own method/logic to achieve this.
I take it that you want to stop the loop if the testcase fails?
There are a few different tactics for this:
1. Easiest would be to add a groovy script at the end of the testCase and add as code: testRunner.gotoStepByName("testStep1Name")
2. Other tactic would be the script from pradeep.