If any iteration failed (an element did not appear because the system turned off it as expected), log a warning message and mark the current iteration as Passed.
After that the script moves to next iteration and continue to test.
I have tried to use:
Code: Select all
throw new ValidationException("text")
If I put this code before that code, the test result is Passed
Code: Select all
TestReport.EndTestModule(TestResult.Passed);