Skip to main content



      Home
Home » Eclipse Projects » SWTBot » About chartcomposite
About chartcomposite [message #491428] Wed, 14 October 2009 10:21 Go to next message
Eclipse UserFriend
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 08:09 Go to previous messageGo to next message
Eclipse UserFriend
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 09:35 Go to previous message
Eclipse UserFriend
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: Tue Jun 24 16:37:34 EDT 2025

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

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

Back to the top