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


Postby noman » Wed Jul 11, 2007 9:56 pm

I can't seem to generate test code for list items. A few days ago, it worked fine, generating for example the following code when selecting a list item: ListItemLocator("jane", new SWTWidgetLocator(List.class, new SWTWidgetLocator(Composite.class, 0, new SWTWidgetLocator(Composite.class)))));

I just tried to record a new test using the same objects, and this time the recorder does not pick up the list items. I can manually enter the code and it works, but i am puzzled as to why the click action is not being recorded when it worked a few days ago. Ofcourse running the test fails due to widgetnotfound error. Please advice.
Posts: 2
Joined: Mon Jun 25, 2007 6:07 pm
Location: Sydney

Postby Phil Quitslund » Thu Jul 12, 2007 11:41 am

Is the application code under your control? If so, you might consider naming the list. having done that you could use a much simple locator such as:

new ListItemLocator("jane", new NamedWidgetLocator("my.list"));

For more on naming see this FAQ entry: ... e_a_widget

If you cannot do this or want to pursue this possible regression, please send a mail to:

including as much info as you can to help us reproduce the problem. For more on this, see here: ... ct_support
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