How does validation work?

Ask general questions here.
Balazs
Posts: 2
Joined: Thu Jun 21, 2018 2:55 pm

How does validation work?

Post by Balazs » Mon Jun 25, 2018 10:43 am

My project is to measure runtime on a program with Ranorex and in this post I will share my biggest problem. I want to measure how much time does it take to load a file(load_alg rec. loads the file) but the problem is that the validation takes too much time and therefore I don't know when was the file loaded in reality.

If I run only the load_alg recording there is no warning, the validation completes quite fast. But running the whole test case a warning occurs and the validation takes too much time (so my runtime measurement is very inaccurate). The validation happens by comparing two pictures. If no file was uploaded there is a red box, and as the file was uploaded this box turns to green. So in my validation I search for this green box. The warning is that this box could not be found using its absolute path, just the relative path.

Why does this warning not occur if I run only the recording? What does this warning mean at all?
How can I eliminate the warning and make my validation faster?
You do not have the required permissions to view the files attached to this post.

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

Re: How does validation work?

Post by odklizec » Tue Jun 26, 2018 8:01 am

Hi,

Please upload also a Ranorex snapshot of the problematic element(s). Looking at the xpath of 'Green_box' and 'Loadparameterfile' in repo, their xpaths are just too generic and it may be a real challenge for Ranorex to identify such elements. So please upload the snapshot and we may find a better way to identify them.
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

Balazs
Posts: 2
Joined: Thu Jun 21, 2018 2:55 pm

Re: How does validation work?

Post by Balazs » Tue Jun 26, 2018 2:42 pm

The problematic element is the green_box, and I have attached the recording and the repo as well.
What should I upload beyond these parts?
And this error what you can see in the log file, occured today all the time as I made a click or a validation. I have no idea why...

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

Re: How does validation work?

Post by odklizec » Tue Jun 26, 2018 2:46 pm

Balazs wrote:The problematic element is the green_box, and I have attached the recording and the repo as well.
What should I upload beyond these parts?
Hi,
Because it's impossible to tell if there is a better xpath available just from repo and recording. Ranorex snapshot shows GUI elements and their attributes, which may help with constructing better xpath.
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