Page 1 of 1

How to use data driven testing to validate images?

Posted: Mon Jul 01, 2019 9:50 am
by tester1000
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.

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

Posted: Mon Jul 01, 2019 6:32 pm
by odklizec
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.