Page 1 of 2

Continue within test case

Posted: Tue Oct 22, 2013 10:21 am
by UgaAga
Hi,
it seems that it isn't possible to continue with the next module within a test case after a failure like in early ranorex versions. I also can't find the error behavior "Continue with sibling" any more. Is there any possibility to continue within the test case?

Bye

Re: Continue within test case

Posted: Tue Oct 22, 2013 4:16 pm
by Alena
I usually set "Report level on failure" to "Warn" and "Continue on fail" to "True" for individual actions withing test cases that may fail. This way all scripts continue to run without stopping on failure, and I can analyze all warnings afterwards.
As for "Continue with siblings", I see it in [Test case title] -> Right mouse click -> Error behavior -> Choose the behavior you need. This may be version-related, let Rx support team answer this one.

Re: Continue within test case

Posted: Wed Oct 23, 2013 6:31 am
by Support Team
Hi,

Thanks Alena for your solution!
UgaAga which version of Ranorex have you used before?
The Error Behavior options hasn't changed since 3.3.0.
There is also an option which allows you to continue with the next iteration, for more information about the error behavior options please see: Test Case Settings.

Regards,
Markus

Re: Continue within test case

Posted: Thu Oct 24, 2013 9:42 am
by UgaAga
Hi,
thanks Alena and Markus for your answers. I found the "Continue with sibling" option, but only in the context menu not under properties. My ranorex version is 4.0.6 by the way. It seems that the behavior changed, my project was created under version 4.0.3 or something and the test case continued but it doesn't now.

Bye

Re: Continue within test case

Posted: Fri Oct 25, 2013 2:37 pm
by Support Team
Hello UgaAga,

When I open the test case properties I can see the "Continue with sibling" option.
ContinueWithSibling.png
Do you mean this dialog?

Regards,
Bernhard

Re: Continue within test case

Posted: Fri Oct 25, 2013 3:07 pm
by UgaAga
No this one
properties.jpg

Re: Continue within test case

Posted: Fri Oct 25, 2013 3:35 pm
by Support Team
Hi,

I can also select "Continue with sibling" on this dialog as you can see in the image below.
ContinueWithSibling.png
Can you please expand the options?

Regards,
Bernhard

Re: Continue within test case

Posted: Fri Oct 25, 2013 4:08 pm
by UgaAga
properties.jpg

Re: Continue within test case

Posted: Wed Oct 30, 2013 7:03 pm
by Support Team
Hello,

Sorry, I overlooked that you are not using Ranorex 4.1.
You can also use "ContinueWithParentIteration" in order to continue with the next Test Case. It is the same as Continue with sibling.

Regards,
Bernhard

Re: Continue within test case

Posted: Fri Nov 01, 2013 3:45 pm
by UgaAga
Hi,
thanks for your answer. Additionally i would like to continue within the test case, that means after a code module failed the test should continue with the next module. I.e.:

Test Case
Module1 fails --
Module2 <--| continues with
Module3


Regards

Re: Continue within test case

Posted: Fri Nov 01, 2013 6:05 pm
by krstcs
Put them in different sub-Test cases.

Suite
--MainTC
----SubTC1
------Module1
----SubTC2
------Module2
----SubTC3
------Module3

Re: Continue within test case

Posted: Mon Nov 04, 2013 10:38 am
by Support Team
Hi,
it is by design that after a module failed, all other modules within this testcase get skipped.
Nevertheless if you want to continue on fail within a testcase you can set the "Continue On Fail" property of each recording action to "True". This prevents the module to fail and the testcase continues with the next module.

Regards,
Larissa

Re: Continue within test case

Posted: Mon Nov 04, 2013 1:44 pm
by UgaAga
Hi,
thanks for your reply. How can i set "Continue on Fail" for code modules?

Regards

Re: Continue within test case

Posted: Mon Nov 04, 2013 4:06 pm
by Support Team
Hi,
UgaAga wrote:thanks for your reply. How can i set "Continue on Fail" for code modules?
Please see following documentation http://www.ranorex.com/support/user-gui ... html#c3091

Regards,
Peter
Ranorex Team

Re: Continue within test case

Posted: Tue Nov 05, 2013 11:33 am
by UgaAga
Hi,
sorry but i can only find "Continue on fail" for RECORD modules, but i need that for CODE modules too.

Regards