Page 1 of 1

How to Validate the dynamically generated Graphs in Ranorex

Posted: Fri May 10, 2019 6:19 am
by Sandeep1632
Hi All,

I am trying to find a solution for validating the dynamically created graphs using code module, Could some one suggest me on this please.
Below is the approach which I tried.
1. Take the screen shot of the graph and place it in the repository elements
2. Capture the screen shot while test execution
3. Compare the two screen shots using code module.
But the problem here is when I take the screen shot as mentioned in the 1st point the graphs looks different from while running the test case because the graphs can dynamically change time to time.
Attached the screen shot of the graphs that I am trying to validate.

Thank you,
Sandeep

Re: How to Validate the dynamically generated Graphs in Ranorex

Posted: Fri May 10, 2019 7:46 am
by odklizec
Hi,

I'm afraid, you are probably out of luck here. If you cannot capture the reference graph with the same size/appearance as runtime graph (or vice versa), the image validation will always reports they are different. Generally speaking, image validation of complex things like graphs is always a bet in lottery.