Page 1 of 1

Random behaviour of ranorex

Posted: Tue Nov 14, 2017 4:56 am
by dmchavan
We are using ranorex for automating our embedded application and every time when we execute our automation script, we get some random failure. Many times these failures are because of the unexpected behavior of ranorex.
Following are some examples;
? Many times click functionality does not work accordingly( we tried all the methods for click, such as click, perform click, focus and press key, etc)
? While entering input, press key function behave inconsistently(we tried to provide delay also while entering the characters)
? Element is present on the window, still ranorex is not able to find the element (we provided wait too. And when we try to inspect element by using ranorex spy, it work appropriately).

Re: Random behaviour of ranorex

Posted: Tue Nov 14, 2017 12:04 pm
by McTurtle
Hello dmchavan,

Without a Snapshot and a compressed Ranorex solution it is impossible to say what the reason for that behavior could be. I must say that I am now consistently using Ranorex for a year and the tests don't display the random errors that you are mentioning.

Please post a Ranorex snapshot and a compressed Ranorex solution:
1. Ranorex snapshot: Link
2. Compressed Ranorex solution: Link

Regards
McTurtle

Re: Random behaviour of ranorex

Posted: Tue Nov 14, 2017 12:21 pm
by odklizec
Hi,

In addition to what McTurtle already suggested, I have some points too...
? Element is present on the window, still ranorex is not able to find the element (we provided wait too. And when we try to inspect element by using ranorex spy, it work appropriately).
Please provide the xpath of typically failing element, as stored in repo (and of course snapshot of the element).

If standalone spy finds the element with given xpath without any problem, then try to create a snapshot of "parent" element, containing the problematic element, directly from recording. Just add a new "Create Snapshot" action to the recording of your choice, ideally right before the failing step. This should help you/us to identify any UI/xpath difference, which may cause the error.

As for missing/failing mouse clicks, I would suggest to enable Turbo mode for failing recordings. The thing is that with enabled Turbo mode, there are eliminated all delays and move/click times, except the manually added Delay actions. And so the mouse moves/clicks are usually performed instantly, without visible mouse move. It may sound strange, but it actually helped me in many cases of missed clicks.

Re: Random behaviour of ranorex

Posted: Tue Nov 14, 2017 3:19 pm
by krstcs
Also, if you changed/lowered the timeouts on your repo items (or the defaults) set them back to 30 seconds everywhere. Do not change the timeouts. Lowering the timeout will only make the test fail faster, it won't make it run faster. Many times when you have inconsistent results like you are having, it's an issue with timeouts.

Re: Random behaviour of ranorex

Posted: Fri Jan 12, 2018 11:37 am
by dmchavan
Hello All
Thanks for your replies.
With the help of ranorex support team, i got the solutions to my problems.

Re: Random behaviour of ranorex

Posted: Wed Jan 17, 2018 7:45 pm
by jmchughsmart
Hi
can you post solutions you got from ranorex support team.
I am on version 8. Experiencing the same problem.

Re: Random behaviour of ranorex

Posted: Wed Jan 17, 2018 9:05 pm
by jmchughsmart
We Migrated Ranorex 7 to Ranorex 8.0.0 and company AUT to cloud environment. We installed new Premium Floating license in the Dev Cloud.
The test are failing intermittently because of 'Click' not working all the time.

Tried adding 'WaitForExists' and 'WaitForNot Exists' still failing intermittently.

Also, in the Release notes for 8.0.0
On of the 'Breaking changes' is: The .NET Framework 4.5.2 (or higher) is now required for both Ranorex tools and runtime
if this in not installed will this cause this error??