[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: How to do GUI tests

"Jochen" <jochen.wuttke@xxxxxx> wrote in message news:fmv85h$alt$1@xxxxxxxxxxxxxxxxxxxx
I'm trying to figure out if there is a way to do JUnit tests of the user interface part of my plug-in. Since some of the stuff that happens with the various GUI contributions (in particular actions, commands, content type filters, etc.) is not 100% trivial, I'd like to have some JUnit tests, that simulate the user behavior, which would trigger execution of the corresponding code.

I tried to find some tests for the org.eclipse.*.ui plugins, but none of the things I could find were doing tests like that. So, I tried to programmatically select the elements in the navigator view, for example, and was hoping that that would trigger the corresponding "selectionChanged" events. But I didn't even get that far, because somehow I cannot even initialize the GUI properly, it seems to remain stuck at the "Welcome" screen.

Take a look at WindowTester for recording and playing back SWT / JFace / RCP JUnit tests...


   http://www.instantiations.com/windowtester/

Note that WindowTester is a commercial product that is free to developers of open source projects including any Eclipse committer.

   http://www.instantiations.com/company/opensource.html

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.windowbuilderpro.com/

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/032142672X