Layout Composite problem

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

Layout Composite problem

Postby rcraddock » Wed Apr 02, 2008 8:37 am

I have just recorded a small scenario, but when I save the resultant test the java project in unable to resolve one of the classes that is in the test code.

This is the generated code, but LayoutComposite is not recognised..

ui.click(new ButtonLocator("Add", new SWTWidgetLocator(
LayoutComposite.class, new SWTWidgetLocator(Section.class,
new SWTWidgetLocator(SashForm.class,
new LabeledLocator(LayoutComposite.class,
"&Global Rules"))))));

I have looked in org.eclipse.ui.java.forms.widgets in the dependencies (org.eclipse.ui.forms_3.3.0v20070511) and it looks to have the default visibility.

How can I get access to this button?

Thanks in advance,

Richard
rcraddock
 
Posts: 3
Joined: Wed Apr 02, 2008 8:22 am

Re: Layout Composite problem

Postby Phil Quitslund » Fri Apr 04, 2008 10:59 am

We're currently working on improving our forms support which will address this situation.

What's the text of the Section?

Assuming it is "Rules", you should be able to do something like this:

Code: Select all
ui.click(new ButtonLocator("Add", new SectionLocator("Rules")));


Unless there is more than one button called "Add" in the Section (in which case you'll want to use indexes).

In any event, if this does not work for you, please open a ticket with support so we can track the feature and fix.

wintest-support@instantiations.com

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
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