How to Exit a test Case and/or test suit

If I want to conditionally exit out of a TC and/or Test suit then what is the approach?

How about trying com.kms.katalon.core.util.KeywordUtil#markFailedAndStop(String message)

https://api-docs.katalon.com/studio/v5.0/api/com/kms/katalon/core/util/KeywordUtil.html#markFailedAndStop(java.lang.String)

2 Likes

Thanks a lot for your suggestion.

What if I am deep in an test case tree. If there a if statement is true I want to stop the whole test case but with a success?
How can I set up this exit strategy without implementing this if statements also in the following test cases?