Forum Discussion
Hi richie,
I tried changing the below in the TearDown Script but if the test step fails it it keeps retrying on an infinite loop and doesn't seem to stop after the desired failed attempts.
for (i in 0..<3) {
if (testresult.status.toString() == 'FAIL')
Thats weird cos aaronpliu's solution definitely worked before.
I'll search for other solutions or you can yourself...simply a google/forum search.....should retrieve some posts with alternative solutions.
Ta
Rich
- User9993 years agoContributor
richie - Thanks for all the help 🙂
I'm not sure why it didn't work, but strange it went on infinite loop when I added to TearDown Script in the Test Case, I also added the Groovy Script after a Test Step but unfortunately that relies on getting to that exact groovy step but if it was to fail 2 steps before that one then Groovy wouldn't run...
Yea I've search as well but ReadyAPI seems very limited on answers to certain stuff people try to do...
I've posted before but unfortunately few answers to my questions 😞