Page 1 of 1

Stop Test and continue with next test

Posted: Tue Jun 17, 2014 10:04 am
by schemer1
Hi
Can you tell me how I can stop the current test but continue with the next test; In the following situation..
I have a test with 2 code modules, when the first module fails, the second module then starts.
I've tried changing the error behaviour levels, but nothing seems to work.

Thanks

Re: Stop Test and continue with next test

Posted: Fri Jun 20, 2014 2:57 pm
by Support Team
Hi,

When you have two code modules and want that the second should be executed even though the first failed you could for instance use the following structure:
TestCase1 (Error Behavior: e.g. Continue with sibling)
CodeModule1
TestCase2
CodeModule2

Regards,
Markus

Re: Stop Test and continue with next test

Posted: Wed Jun 25, 2014 8:30 am
by schemer1
What I want to know is if you have the following structure..
Test Case 1
- Module 1
- Module 2
Test Case 2
- Module 3

How you can prevent Module 2 from running if Module 1 failed, yet still run Test Case 2.

Thanks

Re: Stop Test and continue with next test

Posted: Wed Jun 25, 2014 12:32 pm
by mzperix
Hi schemer1,

Test Case 1 <= Set Error Behavior to "Continue with sibling"
- Module 1
- Module 2
Test Case 2
- Module 3

If module1 fails, then Test Case 1 will fail, The Error behaviour tells that it should jump to next testcase.

On error behaviour see: http://www.ranorex.com/support/user-gui ... html#c3028

Best Regards,
Zoltan