Stop Test and continue with next test

Ask general questions here.
schemer1
Posts: 16
Joined: Mon Feb 11, 2013 12:05 pm

Stop Test and continue with next test

Post by schemer1 » Tue Jun 17, 2014 10:04 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Stop Test and continue with next test

Post by Support Team » Fri Jun 20, 2014 2:57 pm

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
.
Image

schemer1
Posts: 16
Joined: Mon Feb 11, 2013 12:05 pm

Re: Stop Test and continue with next test

Post by schemer1 » Wed Jun 25, 2014 8:30 am

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

mzperix
Posts: 137
Joined: Fri Apr 06, 2012 12:19 pm

Re: Stop Test and continue with next test

Post by mzperix » Wed Jun 25, 2014 12:32 pm

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