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?
How does validation work?
How does validation work?
You do not have the required permissions to view the files attached to this post.
Re: How does validation work?
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.
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 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
Re: How does validation work?
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...
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?
Hi,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?
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 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