-> JFace and SWT component testing [message #46062] |
Sat, 31 May 2003 17:04  |
Eclipse User |
|
|
|
Hi there,
I try to add automated tests to my JFace and SWT
based Plugin-Components. Therefore I would like to
know:
Q1: Can anyone give me any advice or suggestion?
Q2: How does your component testing works?
Thanks for reading,
Martin (Kersten)
|
|
|
|
|
Re: -> JFace and SWT component testing [message #48823 is a reply to message #48301] |
Wed, 04 June 2003 10:45   |
Eclipse User |
|
|
|
Martin,
I apologize for my confusion. I also am an avid Junit user, but haven't
yet used Junit on my graphical plugins, because of the need to get
components from the Workbench. The link I forwarded seemed to provide a
way to do that. Once you get the components, you're right, there's
still work to be done, and I don't know of a tool that makes it quicker.
Good luck,
David Saff
Martin Kersten wrote:
> Hi David,
>
> I use JUnit all the time for every method I write (test-first way).
> (You may try it too, it gives you more speed and selfconfidence (my xp)).
>
> But I am looking for ways to test SWT/JFace components.
|
|
|
Re: -> JFace and SWT component testing [message #49004 is a reply to message #48823] |
Wed, 04 June 2003 13:18   |
Eclipse User |
|
|
|
Hi David,
> I apologize for my confusion. I also am an avid Junit user, but haven't
> yet used Junit on my graphical plugins, because of the need to get
> components from the Workbench. The link I forwarded seemed to provide a
> way to do that. Once you get the components, you're right, there's
> still work to be done, and I don't know of a tool that makes it quicker.
Well I read about a Swing Testing Framework some time
ago. It head some nice features like recording events
and providing a easier Swing testing by offering
something like skripted events. So you just create
statements like: mouse.click(Component) etc.
Therefore I wondered if something like that exists in swt.
Well I will also check out some tests of the Eclipse
plugins. Maybe there are a lot of things to learn ;)
> Good luck,
Well I hope there isn't much luck involved... ;-)
Martin (Kersten)
>
> David Saff
>
> Martin Kersten wrote:
> > Hi David,
> >
> > I use JUnit all the time for every method I write (test-first way).
> > (You may try it too, it gives you more speed and selfconfidence (my
xp)).
> >
> > But I am looking for ways to test SWT/JFace components.
>
|
|
|
Re: -> JFace and SWT component testing [message #52211 is a reply to message #49004] |
Fri, 06 June 2003 23:42  |
Eclipse User |
|
|
|
Martin Kersten wrote:
> Well I read about a Swing Testing Framework some time ago. It head
> some nice features like recording events and providing a easier
> Swing testing by offering something like skripted events. So you
> just create statements like: mouse.click(Component) etc.
Actually, there are several nice whitebox (or unit-test) GUI test
automation frameworks: see
http://www.superlinksoftware.com/cgi-bin/jugwiki.pl?TestingG UIs
> Therefore I wondered if something like that exists in swt.
Unfortunately there is nothing at the moment. Note that this is
probably due to neglect, not infeasibility. There is a blackbox (or
function-test) tool for SWT, Rational XDE Tester (formerly known as
RobotJ). Being blackbox, it lacks JUnit integration, but it does
demonstrate that SWT can be automated.
I'm part of a group that is attempting to extend one of the tools
listed above to handle SWT/JFace. If you'd like to learn more about
the effort, or about the issues involved, check out
http://groups.yahoo.com/group/java-gui-testing/
If you'd like to help out, please let me know.
|
|
|
Powered by
FUDForum. Page generated in 0.08072 seconds