ReadyAPI - How to repeat failed API tests ?
When *some* API tests fail, then we repeat it (say 3 times) until it succeeds. Currently, we do this by putting a "repeat" script in the tear down script (tab) of every test suite which is prone to failures. It is cumbersome to repeat the script for every problematic suite & update the script.
1 - Is it a good idea to repeat API tests until they pass?
2 - Are there better ways of repeating API tests ?
3 - Why does ready api (version 3.0) not have the option to easily repeat API tests ?
Hi rajs2020,
We currently do not have a feature like that in ReadyAPI, indeed. However, there is the corresponding feature request in our DB, and I have increased its rating according to your message, thanks.
Using TearDown scripts to rerun failed tests sequentially or in parallel looks to be a good solution for now. For example, you can use a script from the Rerun failed test steps sample project available here:
https://staging-support.smartbear.com/readyapi/docs/samples/index.html