Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » About chartcomposite
About chartcomposite [message #491428] Wed, 14 October 2009 14:21 Go to next message
shan  is currently offline shan
Messages: 7
Registered: September 2009
Junior Member
Hello,
I want to know if there is any possiblity to test chartcomposite with Swtbot? Thank you.
Re: About chartcomposite [message #492194 is a reply to message #491428] Mon, 19 October 2009 12:09 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
On 14/10/09 7:51 PM, shan wrote:
> Hello,
> I want to know if there is any possiblity to test chartcomposite with
> Swtbot? Thank you.

By chartcomposite, I presume you mean the one that ships with
JFreeCharts. The answer is yes an no.

The degree of testability will depend on the kind of model that's behind
your chart. If there's no model your best bet would be to screenscrape
the canvas (pixel by pixel) to get values -- painful I know :)

By model I mean something similar to:

years = bar_chart.x_values();
population = bar_chart.y_values();

population_every_year_list = bar_chart.plot_values();

Or something like:

population_distribution_by_age = pie_graph.values();

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
Re: About chartcomposite [message #492207 is a reply to message #492194] Mon, 19 October 2009 13:35 Go to previous message
shan  is currently offline shan
Messages: 7
Registered: September 2009
Junior Member
Yes, they are from JFreeCharts. And it is by model. In that case, can SWTBot identify those bar charts or line charts?
Previous Topic:Secure Storage & StorageLoginDialog
Next Topic:clickLink fails if the linkText is too long
Goto Forum:
  


Current Time: Thu Oct 30 12:35:51 GMT 2014

Powered by FUDForum. Page generated in 0.02191 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software