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.
Is there any way of taking control after a Fail?
Re: Is there any way of taking control after a Fail?
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.
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 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