How to JUnit-test Draw2D applications? [message #249002] |
Sat, 16 May 2009 15:01 |
|
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 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02779 seconds