Skip test if previous test scenario failed.
I have created a test suite, and am wondering if it is possible to skip a test if the previous test failed.
Above is the suite, and the test(s) in question are the Add/Remove VMF.
If the Add test fails, there is no point in running the Remove test, as the data will not be present on the account under test.
Solved! Go to Solution.
Make Remove WMF test item a child of the Add WMF one and set the On Error property of the latter to Stop Current Item.
However, my personal preference is tests architecture when test can identify the similar entity from the previous test run and act on it if the most recent entity is not available for some reason.
I prefer this because with the traditional approach essential information becomes to be not available during the test run. Using your case as a sample: VMF's addition fails for some reason and you will not be able to say anything about whether or not the VMF item still can be deleted. So you get more limited information about the state of the tested program.
/Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Thank you for sharing your expertise with us, Alex🙂
Hi @cbroad ! Does this answer your question?
Community and Education Specialist
I will use the setting it as a child method, and then investigate other options such as suggested.