Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to JUnit-test Draw2D applications?
How to JUnit-test Draw2D applications? [message #249002] Sat, 16 May 2009 15:01 Go to next message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
Hi all,

in order to write some tests for the GEF3D project, I was wondering how
to do a test of a Draw2D functionality. In other words: How to test a
figure? I'm not interested in testing its getters and setters
(figure.set(x)==figure.getX() is not a very interesting question), but
in testing the actual graphical output. What I'm thinking about is some
type of (fuzzy) image comparison -- this would be applicable to Draw3D
graphics as well (since I simply have to compare screenshots). Or are
there other, better techniques? Is there a known library for comparing
images?

Cheers

Jens
Re: How to JUnit-test Draw2D applications? [message #468231 is a reply to message #249002] Tue, 04 August 2009 15:16 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
I'm answering myself, just in case someone finds my initial question:

The swtbot4gef should to the job, have a look at
http://code.google.com/p/swtbot4gef/ or read Ketan Padegaonkar's blog
at http://ketan.padegaonkar.name/2009/08/04/gef-support-for-swt bot.html

Cheers

Jens

On 2009-05-16 17:01:41 +0200, Jens v.P. <developer@jevopi.de> said:

> Hi all,
>
> in order to write some tests for the GEF3D project, I was wondering how
> to do a test of a Draw2D functionality. In other words: How to test a
> figure? I'm not interested in testing its getters and setters
> (figure.set(x)==figure.getX() is not a very interesting question), but
> in testing the actual graphical output. What I'm thinking about is some
> type of (fuzzy) image comparison -- this would be applicable to Draw3D
> graphics as well (since I simply have to compare screenshots). Or are
> there other, better techniques? Is there a known library for comparing
> images?
>
> Cheers
>
> Jens
Previous Topic:Need Help to make connection
Next Topic:GEF CVS
Goto Forum:
  


Current Time: Tue Sep 24 02:17:38 GMT 2024

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

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

Back to the top