Page 1 of 1

How does validation work?

Posted: Mon Jun 25, 2018 10:43 am
by Balazs
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?

Re: How does validation work?

Posted: Tue Jun 26, 2018 8:01 am
by odklizec
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.

Re: How does validation work?

Posted: Tue Jun 26, 2018 2:42 pm
by Balazs
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...

Re: How does validation work?

Posted: Tue Jun 26, 2018 2:46 pm
by odklizec
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.