Is there are any samples on how to use GEF Locators

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

Is there are any samples on how to use GEF Locators

Postby irene » Fri Sep 05, 2008 4:44 pm

Hi all,
Dowloaded WindowTester 3.5.0 release version(Eclipse 3.3.2 ) and trying to record drag/drop from palette to canvas and connecting figures in GMF editor.
Getting weird errors that ImageFigureLocator can't be found, any help would be appreciated:

ui.click(new PaletteItemLocator("EndPoints/File endpoint"));
ui.click(new DiagramEditPart$1Locator());
ui.click(new PaletteItemLocator("EndPoints/File endpoint"));
ui.click(new DiagramEditPart$1Locator());
ui.click(new PaletteItemLocator("Processors/Message Filter"));
ui.click(new DiagramEditPart$1Locator());
ui.click(new PaletteItemLocator("Generic/Connection"));
//trying to connect DiagramParts on graph
ui.click(new LRLocator(10, new ImageFigureLocator()));
ui.dragTo(new LRLocator(13, new ImageFigureLocator()));
ui.click(new PaletteItemLocator("Generic/Connection"));
ui.click(new LRLocator(19, new ImageFigureLocator()));
ui.dragTo(new LRLocator(22, new ImageFigureLocator()));
ui.click(new ContributedToolItemLocator("org.eclipse.ui.file.save"));

Thx,

Irene
irene
 
Posts: 1
Joined: Fri Sep 05, 2008 4:12 pm

Re: Is there are any samples on how to use GEF Locators

Postby Phil Quitslund » Tue Sep 23, 2008 7:38 pm

First thing, you should try our latest beta since our GEF support has been improving steadily. As for GMF, support is still under investigation. As a jumping off point, you might look at our Taipan example posted here:

http://code.google.com/p/wt-commons/wiki/WTSamples

If there is other behavior you'd like to see demonstrated, please let us know and we can see about cooking up a sample.

Sorry for the slow response!
--
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