Differences when running tests remotely

Ranorex Spy, Recorder, and Studio.
seurrep
Posts: 17
Joined: Tue Aug 07, 2018 10:19 am

Differences when running tests remotely

Post by seurrep » Fri Sep 21, 2018 1:43 pm

I've got the tests I've had to write running successfully on my own PC. When they're run remotely however I start seeing odd behaviour. I need to authorise a user as one of the initial steps in one of my tests. To do this I opened a browser then navigated to a URL (the navigate action had the 'waitforloaded' parameter set to true). This page contains a bunch of text and a continue button.

Trying to click the continue button however ends up with odd results. Initially for example it clicked on it but almost looked like it was trying to drag the button meaning that the button ended up not being clicked, and even when it was working it ended up clicking on entirely the wrong area of the screen (to the top left area beyond the button). This doesn't happen when run locally.

The remote PC has a different resolution for the screen (1080p as opposed to whatever high resolution my own PC is using) but would this have an impact to start with? If the image is being searched for then wouldn't it still find it & click it?

User avatar
RobinHood42
Posts: 239
Joined: Fri Jan 09, 2015 3:24 pm

Re: Differences when running tests remotely

Post by RobinHood42 » Mon Sep 24, 2018 7:37 am

Hi seurrep,

First of all, I would do the following to eliminate any possible timing issues:

TimingIssue.png
TimingIssue.png (7.28 KiB) Viewed 63 times

The hardcoded delay and the separated mouse actions are there for maximum robustness.

Hope this helps.

Cheers,
Robin