Possible to override test step pass/fail via subsequent groovy script?
Good evening all,
Is it possible to override the status/result (OK/Failed) of a test step via a subsequent trailing Groovy script?
To give the question a little more context.... I want to:
1. Perform async API call
2. Delay for a few seconds
3. Verify the results of the async call - which may or may not pass the assertions
4. Groovy script to check the status of step 3.... if it has FAILED then return to step 2
This step will also expire after a given number of retries
I can get the above to work successfully except the preceeding attempts (where the assertions of step 2 failed) are leading to the test case itself failing. Essentially the last time through it passes fine.
I'd like to override/erase the previous failures in step 2 until the last time through.
Does that make sense? Thanks for any help!
Ken.