Access current re-run iteration from script (javascript)
Hello, I have my project configured to re-run the test cases that failed, and now I need to find a way to know (via javascript) on which iteration of the "re-run" is the current test case running.
Example: my project is configured to re-run on failure 4 times
First time: fail
Second time: fail
Third time: pass
In my test scripts, I need to know WHEN I am on the "First time", "Second time" and "Third time". Is anyone familiar with this? Is there any property or event which contains this piece of information?
Thanks.
That would be a nice thing to be able to do, but I don't know of a way to do it using the UI. You could post an idea to the roadmap portal - I'd vote for that!
The only option I can think of is to use the API and update each test case by code. There's the PUT Update Test Case endpoint if you're on the Cloud version of ZS, or the PUT "/testcase/{testCaseKey}" endpoint if you're on the Server version.