[Studio] How do I terminate test case on failure of any step?

Currently, I have test suites with multiple test cases and when any step fails in a test case, it still tries to run remaining cases and these remaining cases will however fail.

I need my test case execution to terminate on failure of any step and to continue to run other test cases in test suite. How can I do that?

Any suggestions are highly appreciated! Thanks in advance!

2 Likes

Maybe you shouldn’t use test suites in this case…

Why?

Test suites are supposed to run all test cases…

Instead, you should probably create a test case and call all those child test cases:

WebUI.callTestCase(findTestCase("[your first test case]"), [:]);

// ...

WebUI.callTestCase(findTestCase("[your last test case]"), [:]);

4 Likes

Or you can try:
Project Settings > Test Design > Test Case > Default Failure Handling For Test Step = STOP_ON_FAILURE

3 Likes

@varun.rocks03
Welcome to the community

I hope this documentation will help you understand better