How to skip one action to another while processing

Ranorex Spy, Recorder, and Studio.
espekkaya
Posts: 12
Joined: Tue Mar 11, 2014 4:07 pm

How to skip one action to another while processing

Post by espekkaya » Thu Jul 02, 2015 8:00 am

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.

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

Re: How to skip one action to another while processing

Post by Support Team » Fri Jul 03, 2015 2:40 pm

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

espekkaya
Posts: 12
Joined: Tue Mar 11, 2014 4:07 pm

Re: How to skip one action to another while processing

Post by espekkaya » Mon Jul 06, 2015 12:02 pm

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3945
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to skip one action to another while processing

Post by odklizec » Mon Jul 06, 2015 12:11 pm

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
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

espekkaya
Posts: 12
Joined: Tue Mar 11, 2014 4:07 pm

Re: How to skip one action to another while processing

Post by espekkaya » Mon Jul 06, 2015 12:57 pm

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.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3945
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to skip one action to another while processing

Post by odklizec » Mon Jul 06, 2015 1:07 pm

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

espekkaya
Posts: 12
Joined: Tue Mar 11, 2014 4:07 pm

Re: How to skip one action to another while processing

Post by espekkaya » Mon Jul 06, 2015 1:44 pm

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.

jma
Posts: 111
Joined: Fri Jul 03, 2015 9:18 am

Re: How to skip one action to another while processing

Post by jma » Thu Jul 09, 2015 10:04 am

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.