How to use data driven testing to validate images?

Ask general questions here.
tester1000
Posts: 3
Joined: Mon Jul 01, 2019 9:41 am

How to use data driven testing to validate images?

Post by tester1000 » Mon Jul 01, 2019 9:50 am

Hi all,

I'm very new to working with Ranorex, and I would like to use it to test an application that given a table of data, generates statistics/charts about this data. There's one window that has a drop down list of all the column names in the table, and clicking one column name autogenerates a line graph, plotting the data given in the table for each column name. I was originally thinking that I could use data driven testing to make the drop down list variable, and efficiently go through all of the column names and validate the image for each.

But the problem here is that in order for this to work, I would need to make the validation object (i.e. the picture of the line graph) variable as well (otherwise it just compares the graph to the first one clicked, rather than the one generated for each column name which obviously fails). I'm not sure how to do this, as there's no option to input image files into Ranorex as a data source.

Basically, my question boils down to whether it is possible to make a repository item that represents an image, variable.

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

Re: How to use data driven testing to validate images?

Post by odklizec » Mon Jul 01, 2019 6:32 pm

Hi,

Could you please show us a Ranorex snapshot of your app under test, so we can better understand structure of tested app? Generally speaking, validating charts/graphs via image validation is not reliable method of TA and I would definitely drop that idea. Of course, you can pass a repository element to a method via repoiteminfo or adapter parameter. But without knowing the structure of your app and ideally, also more detailed test scenario steps, it would be just a guess work to suggest something you can actually use. So please, share the snapshot and more detailed test steps. Thanks.
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