Testing Eclipse Preference Validation Errors

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Testing Eclipse Preference Validation Errors

Postby jistrawn » Wed May 05, 2010 12:33 pm


I am having a bit of trouble accessing a control and was wondering if anyone had any ideas.

I am validating an Eclipse preference value. When an invalid value is entered an error message is displayed in the Preference view (using the FieldEditor.setErrorMessage() method). My question is how do I access this control to check the error message text. I have attached an image.

Jim Strawn

invalidUrl.png (3.5 KiB) Viewed 116 times
Posts: 1
Joined: Wed May 05, 2010 12:11 pm

Re: Testing Eclipse Preference Validation Errors

Postby Phil Quitslund » Wed May 05, 2010 2:11 pm

Maybe an obvious question but have you tried to generate an assertion using the inspector? If not, Give that a whirl. It *should* help you identify the widget corresponding to the message. If not, we can work through another approach. Inspector docs are here:


Let us know how it goes.
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest