Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How does the Eclipse project test it's GUI?
How does the Eclipse project test it's GUI? [message #329537] Fri, 27 June 2008 12:14 Go to next message
Hans Schwaebli is currently offline Hans SchwaebliFriend
Messages: 70
Registered: July 2009
Member
I just want to verify that I understood it, how Eclipse itself tests the
GUI of its product.

I've downloaded the plugin tests of Eclipse 3.2.2 and run some of them in
Eclipse. Then dialogs pop up, close etc.

When I looked into the code for the plugin tests
"org.eclipse.jdt.ui.tests", it seems that it is a kind of white box GUI
testing because the dialogs are created in the classes directly
(JavaProjectHelper.createJavaProject(...)) and methods of the GUI objects
are called, for example setSomething(...).

For this approach one needs to know a lot of the GUI classes. It seems
that it also relies on additional manual testing, since there can't be
automated everything by using this approach.

It is not a black box testing, since a generic technique ("click on a
button named OK in the dialog", "enter text into box by keypress events")
is not used as it seems.

Did I understand it right?
Re: How does the Eclipse project test it's GUI? [message #329541 is a reply to message #329537] Fri, 27 June 2008 13:23 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

While it varies from component to component, our Platform UI tests are
definitely "white box" tests. Sometimes actions are called in "testing"
mode so they don't open dialogs, test editors are used so that state can
be extracted from their member variables, and in some cases reflection
is used to open and close context menus.

UI testing is hard :-)


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: How does the Eclipse project test it's GUI? [message #329547 is a reply to message #329541] Fri, 27 June 2008 15:19 Go to previous message
Hans Schwaebli is currently offline Hans SchwaebliFriend
Messages: 70
Registered: July 2009
Member
You are very successful, since the quality is great. I just wondered how
you achieve such a good quality.

We are currently starting to use SWT Bot to test our RCP application. It
seems to me that it is a promising project in an early stage. It is black
box testing. The GUI tests are Java programs by design (no XML, script or
whatever), which I like.
Previous Topic:Using Menu and Handler Service Stand Alone
Next Topic:perspective Shortcut
Goto Forum:
  


Current Time: Wed Jul 17 19:51:59 GMT 2024

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

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

Back to the top