Problem with clicking on tool bar's tool item in a view

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

Problem with clicking on tool bar's tool item in a view

Postby cubetest » Wed Nov 05, 2008 12:41 pm

Problem with clicking on tool bar's tool item in a view (there are others views that have tool bars in Perspective)

Hello,

I am stuck on a click on tool item that is found in a view and that has index of 6. The click on tool item with index 7 works fine since no other tool bar contains tool item with index 7.

When item is inspected/asserted tool items I get:

Code: Select all
ui.assertThat(new SWTWidgetLocator(ToolItem.class, "", 6,
            new SWTWidgetLocator(ToolBar.class, 2, new SWTWidgetLocator(
                  Composite.class))).isVisible());

ui.assertThat(new SWTWidgetLocator(ToolItem.class, "", 7,
            new SWTWidgetLocator(ToolBar.class)).isVisible());



When I record a click on this toolbar item I get:

Code: Select all
ui.click(new SWTWidgetLocator(ToolItem.class, "", 6,
            new SWTWidgetLocator(ToolBar.class, 2, new SWTWidgetLocator(
                  Composite.class))));

ui.click(new SWTWidgetLocator(ToolItem.class, "", 7,
            new SWTWidgetLocator(ToolBar.class)));



However, when I play back the click on tool item with index 6 fails with:
com.windowtester.runtime.WidgetNotFoundException: Widget NOT Found:
SWTWidgetLocator(org.eclipse.swt.widgets.ToolItem, , 6, SWTWidgetLocator(org.eclipse.swt.widgets.ToolBar, 2, SWTWidgetLocator(org.eclipse.swt.widgets.Composite)))

For some reason (I guess) WT is not able to find tool item that is found in tool bar that is identified by index 2 and Composite.


Any suggestions?

Thanks,

Dejan
cubetest
 
Posts: 2
Joined: Wed Nov 05, 2008 11:30 am

Re: Problem with clicking on tool bar's tool item in a view

Postby Phil Quitslund » Mon Nov 10, 2008 8:33 am

Hi Dejan,

Could you send a bug report to support?

wintest-support@instantiations.com

And when you do, could you send a screenshot for the failing test?

http://downloads.instantiations.com/Win ... tml#sshots

Thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: Problem with clicking on tool bar's tool item in a view

Postby cubetest » Thu Nov 13, 2008 8:20 am

Thanks,

The issue is logged with Case 37935.

Dejan
cubetest
 
Posts: 2
Joined: Wed Nov 05, 2008 11:30 am

Re: Problem with clicking on tool bar's tool item in a view

Postby Phil Quitslund » Sat Nov 15, 2008 8:23 pm

Perfect. We'll follow-up there.

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