Error within dataloop stops the test though it is not required
I have a test case with the following basic options set:
- Search properties
- Fail Test Case on Error
I have a DataSource Loop and one of the steps I have between the source and the loop sometimes fail.
If I set a testRunner.fail(msg) to track it, the test fails and stops => I don't understand this point as I didn't require the test to abort on failure
If I set only a log.error, the step fails, the test parses all the data but if the latest step is OK, the test is considered as sucessful, which is wrong.
I want the loop to be parsed completely regardless of failures so I can check which input data provokes a failure, but I also want to have a final status FAIL if one of the steps failed.
Is there any additional option that I shall handle to obtain this result ?
Solved! Go to Solution.
Calling testRunner.fail(msg) terminates a TestCase execution immediately that is expected behavior (this effect is mentioned here: https://support.smartbear.com/readyapi/docs/soapui/running/case.html).
As for the usage of log.error that results in an incorrect status of the whole test in some cases, we'll need to investigate this. Please create a support ticket for that: https://support.smartbear.com/message/?prod=ReadyAPI It'll be great if you provide a sample project that allows reproducing the issue.
Customer Care Team
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Ok, I though that it would depend on the configuration selected.
So I will remove testRunner.fail and I will require support for the final result that does not reflects reality