Page 1 of 1

How to skip one action to another while processing

Posted: Thu Jul 02, 2015 8:00 am
by espekkaya
Hello,

I want to skip one action to another while processing. I know that when "continue on fail" property sets true its automatically continues.

I make user to do it whenever who wants.

thank you.

Re: How to skip one action to another while processing

Posted: Fri Jul 03, 2015 2:40 pm
by Support Team
Hi espekkaya,

Unfortunately I'm not exactly sure if I got your questions correctly.
May I ask you to describe your intention in more detail?

Thank you.

Regards,
Markus (S)

Re: How to skip one action to another while processing

Posted: Mon Jul 06, 2015 12:02 pm
by espekkaya
Helllo,

I want to run an automated test procedure using Ranorex. While running a specific scenario, is it possible to ignore/skip a certain step?

For example;
1- Open a web browser (pass)
2- Click "log in" button (pass)
3- Validate a success label (ignore)
* At this point I do not care if it is a pass/fail, I just want the automated steps to continue to run the remaining test steps to complete the scenario.

Thanks for your support,

Enes

Re: How to skip one action to another while processing

Posted: Mon Jul 06, 2015 12:11 pm
by odklizec
Hi,

Yes, it's possible. You just have to set "Continue on Fail" to True for particular recording action. By default, Continue on Fail is set to False. See this paragraph:
http://www.ranorex.com/support/user-gui ... html#c3091

Re: How to skip one action to another while processing

Posted: Mon Jul 06, 2015 12:57 pm
by espekkaya
Thank you for your respond.

I have known this feature. It makes automatically. But I need it manually. For example, an action which I press a key then ignore it and continue next action.

Is this posibble? or we have only "Continue on Fail" feature for skip next action.

Re: How to skip one action to another while processing

Posted: Mon Jul 06, 2015 1:07 pm
by odklizec
Unfortunately, I don't understand what exactly you want to achieve? It seems to me that you are trying to mix automatic test with manual input? I'm afraid, this is completely wrong concept and you should avoid that. But maybe I misunderstood something? ;)

If you want, from some defined reasons, to ignore certain recording steps (based of state of last validation), you will have to create user code with some conditions.

e.g. pseudo code:

Code: Select all

if (validation == true)
{
action_1
action_2
action_3
}
else
{
action_4
action_5
action_6
}
There is no way to perform conditions within Recording table.

Re: How to skip one action to another while processing

Posted: Mon Jul 06, 2015 1:44 pm
by espekkaya
You undestand right no problem with that :)

My question is that there is only way to ignore action via "Continue on fail" feature.

Thanks, Kindly.

Have a good day.

Re: How to skip one action to another while processing

Posted: Thu Jul 09, 2015 10:04 am
by jma
Hi espekkaya,

It sounds to me like you want the validation error to be reported, but you don't want your test run to be terminated. Did I understand you correctly?

As mentioned in previous posts "Continue on fail" would be one possibility to continue the module execution even in case of error.

If you perform validation steps within user code you could report error messages manually to your report (which does not terminate the module execution either).

What also could be interesting for you is the error behavior of test cases. Depending on the error behavior of your test cases the following test case executions could be influenced.

I hope this will help you.