Is there any way of taking control after a Fail?

Ask general questions here.
stapes
Posts: 206
Joined: Wed Sep 16, 2015 10:55 am

Is there any way of taking control after a Fail?

Post by stapes » Fri Jul 15, 2016 3:33 pm

I would like to add a method to be used every time Failure is invoked. Is there a way I can do this.
Primarily I want to set a Global flag to indicate that a module has failed.
Then modules that follow can execute or not depending on the value of the flag.

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

Re: Is there any way of taking control after a Fail?

Post by odklizec » Mon Jul 18, 2016 11:41 am

Hi,

I don't think there is an "out of the box" way to achieve what you want? What you can try is to use a "popup handling" approach, where instead of waiting for a popup/dialog, you can evaluate success/failure and then set a global flag based of the found state. However, because of popup-watcher running in a second thread, it may be a bit tricky to make it working as you intend (starting a particular module after found failure), because there is no way to pause the main thread during processing second thread.
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