I don't understand what the "Error behavior" option of test cases and smart folders does. I assume it modifies the flow of control when a test step fails, but I don't understand in which way.
I have this test case (curly braces indicate a smart folder):
Code: Select all
test case --- with a 3-row data source
+-- [SETUP]
+-- {Preparation}
+-- {TestSteps}
+--{Test part 1}
+--{Test part 2}
+-- {Validation}
+-- [TEARDOWN]
I want to achieve this: Whenever something fails in [SETUP], [TEARDOWN], or any of the smart folders, I want to skip the rest of the test case, and start the next data iteration.
I created a situation where an action in {Preparation} must fail during the first data iteration. So, the first iteration should skip over {TestSteps} and {Validation}, and then the test should be executed for the second data row (and, finally, for the third row).
I tried setting the "error behavior" of the test case and of the {Preparation} folder to various values but the test never reached the second data row. Is my thinking wrong, or did I just fail to find the correct combination of settings?
Thanks
Hans