Enable Continue on Fail without Warning?

Ask general questions here.
Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Enable Continue on Fail without Warning?

Post by Fergal » Tue Mar 06, 2018 10:07 am

Ranorex 8.0.1

Is it possible to set up a test step which is "Enable continue on fail", to not give a warning when that step is not executed? For example, if "Scroll_Bar_PageDown" in the test step below is not found and hence can't be clicked, the test run would not report a warning?

Image

Is it possible to make this setting specific to a particular step, i.e. some "Enable continue on fail" steps should report a warning if they are not completed and some should not give a warning?

Thanks.

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

Re: Enable Continue on Fail without Warning?

Post by odklizec » Tue Mar 06, 2018 10:14 am

Hi,

Nope, there is not such functionality available for "Continue on Fail". This option simply prevents a given step from throwing exception and therefore failing the test. In my opinion, the only way how to avoid also warnings, would be to convert the step to user code and then enclose entire step in Try..Catch block. So then if there is thrown an exception (due to step failure), you will be able to process the exception in Catch block, where you can decide what to do (fail, warning or nothing at all).
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

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Enable Continue on Fail without Warning?

Post by Fergal » Tue Mar 06, 2018 11:13 am

Thanks for that odklizec, that's a good option for what I'm looking for.