Page 1 of 1

PopUp Watcher not working using Ranorex Agent

Posted: Mon Sep 30, 2019 6:40 pm
by Mr.Papou
Hello,

Is there an possible explanation on why the PopUp Watcher from the Ranorex Automation Helper would not work when using by a Ranorex Agent?

When I use my Test Suite on my local machine, it works correctly. But when I try to launch the same Test Suite, using a Ranorex Agent, when the Popup shows, it simply does not see it. I have verified the RxPath with Ranorex spy and on both machine he can see the element.

What I've already tried:
- I've set a 10 second delay in my PopUp watcher recording module. Still not working.
- I've placed my PopUp watcher in the setup, instead of directly in the test suite. Still not working.

The only thing that seems to be working, is when I use a user code module that I've made, but this bring other undesired problems, see the link:
https://www.ranorex.com/forum/popup-wat ... 14554.html

I'm using Ranorex version 9.1.1

Thank you in advance,
Pascal

Re: PopUp Watcher not working using Ranorex Agent

Posted: Tue Oct 01, 2019 3:38 pm
by Support Team
Hi Mr.Papou,

To better understand what Ranorex is seeing during the test run, capture a Ranorex Snapshot of your application during runtime right after this popup exists. You can do this by using a "Create snapshot" action on the AUT's root repository item. Once added, run the test until it fails. Once it fails, look at the Ranorex Snapshot in the Ranorex Report and see if your RxPath to the popup finds the popup or if the RxPath is different. If it is different, hopefully, the snapshot will give you some information on why and you can make adjustments to your RxPath accordingly.
1.png

I hope this helps!

Cheers,
Ned

Re: PopUp Watcher not working using Ranorex Agent

Posted: Tue Oct 01, 2019 4:42 pm
by Mr.Papou
Thanks for the answer, I'll try that. But for the test, I'm on RDP on the PC that run the agent and when I run the test suite to see what going on and I clearly see the PopUp on the screen, he exist, he's visible and he has focus.

Re: PopUp Watcher not working using Ranorex Agent

Posted: Wed Oct 02, 2019 6:54 pm
by Mr.Papou
In the end I was able to fix my issue by fixing my PopUpWatcher user code and I use it instead of the PopupWatcher from the Ranorex Automation Helpers.

Thanks for your help
Pascal