How to Validate the dynamically generated Graphs in Ranorex

Experiences, small talk, and other automation gossip.
Sandeep1632
Posts: 4
Joined: Tue Apr 02, 2019 8:42 am

How to Validate the dynamically generated Graphs in Ranorex

Post by Sandeep1632 » Fri May 10, 2019 6:19 am

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
Attachments
screenshot_Comparision.png
screenshot_Comparision.png (18.35 KiB) Viewed 38 times

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

Re: How to Validate the dynamically generated Graphs in Ranorex

Post by odklizec » Fri May 10, 2019 7:46 am

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.
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