How to Skip Iteration without Exception

Best practices, code snippets for common functionality, examples, and guidelines.
riagarwal
Posts: 19
Joined: Thu Aug 27, 2015 3:44 pm

How to Skip Iteration without Exception

Post by riagarwal » Fri Jul 17, 2020 3:39 am

Hello,

I got a scenario, where the Payment options are not available, then I have to skip the Iteration and move to Next Iteration.

Please confirm, how can I do that.

User avatar
Stub
Posts: 515
Joined: Fri Jul 15, 2016 1:35 pm

Re: How to Skip Iteration without Exception

Post by Stub » Fri Jul 17, 2020 8:26 am

A Condition on the test case might be possible depending on your setup. Another approach I take to skipping tests is by using a code module to set the following attribute:

Code: Select all

TestSuite.CurrentTestContainer.Checked = false;