Mdar
3 years agoOccasional Contributor
Behavior when a test step fails
I have a collection of test cases, each with several groovy-script test steps. When a test-step fails, the method testrunner.fail() is called. This has the effect of ending that current test step, an...
- 3 years ago
Mdar,
The default behavior is to stop the test case execution if a test step fails.
But, you can change it in TestCase properties if you prefer to continue (see picture below).
Inside the groovy script, you can use an assertion, e.g.:
assert true == false: "Test step failed"
Then the following test steps are executed. However, if you use:
testRunner.fail("Hi there")
The execution stops regardless of your TestCase setup described above.
Best regards,
Karel