Page 1 of 1

Query datapoints in a graph

Posted: Thu May 18, 2017 7:23 pm
by joebartt
Is there a way to query all of the datapoints displayed in a graph? I would like to query the same info from a database table and compare the results for a validation test.

Thanks,
Joe

Re: Query datapoints in a graph

Posted: Thu May 18, 2017 8:49 pm
by Vega
It depends on what kind of accessibility the graph provides. If the graph makes these values easy to read with accessibility, this should be no problem. If the graph is basically just a flat image,you may have to resort to image validation. It's hard to say without seeing a snapshot of the graph itself.

Re: Query datapoints in a graph

Posted: Fri May 19, 2017 12:34 pm
by joebartt
snapshot of graph attached.

btw I am experimenting with the .find method to create the query.

Re: Query datapoints in a graph

Posted: Fri May 19, 2017 12:57 pm
by joebartt
Just clarifying something mentioned in a previous post. FindChild, FindChildren, FindDescendant and FindDescendants are all obsolete methods replaced by .Find, correct?

Re: Query datapoints in a graph

Posted: Fri May 19, 2017 2:26 pm
by krstcs
That is correct. All FindXXXX<T>() methods are deprecated in favor of Find<T>().

Re: Query datapoints in a graph

Posted: Fri May 19, 2017 5:45 pm
by joebartt
Ok, so I need to use the .find method to get the datapoints by searching for the proper adapter type? Is there a comprehensive list of adapter types with descriptions somewhere (besides in the method)?

Re: Query datapoints in a graph

Posted: Mon May 22, 2017 11:49 am
by jma
Hi joebartt,

You can find this information in the API documentation.

First, open the documentation for Ranorex.Adapter. At the end of the page you'll find a list called 'Inheritance Hierarchy'. This list contains all inherited classes.

I hope that helps.