CComboItemLocator is not working

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

CComboItemLocator is not working

Postby win » Wed May 13, 2009 9:05 am

Hi ,

Is the CComboItemLocator broken , I am trying to select an operator from the combo box I'm not getting an error but when i playback the recorded test it falls over on the following

ui.click(new CComboItemLocator("=", new ViewLocator("org.eclipse.ui.views.PropertySheet")));
ui.click(new CComboItemLocator("=", new ViewLocator("org.eclipse.ui.views.PropertySheet")));
i.click(new XYLocator(new LabeledLocator(CLabel.class, "Operator",new ViewLocator("org.eclipse.ui.views.PropertySheet")), 33, 9));


Any ideas whats wrong ?
win
 
Posts: 7
Joined: Mon May 11, 2009 4:14 am

Re: CComboItemLocator is not working

Postby Phil Quitslund » Thu May 14, 2009 9:54 am

Could you post the error stack trace?
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: CComboItemLocator is not working

Postby win » Thu May 14, 2009 1:03 pm

it fails on this line
ui.wait(new ShellDisposedCondition("Value assignment"));
ui.click(new CComboItemLocator("=", new ViewLocator("org.eclipse.ui.views.PropertySheet")));

failure trace :
com.windowtester.runtime.WidgetNotFoundException: Widget NOT Found:
CComboItemLocator("=")
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:608)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:583)
at com.windowtester.runtime.swt.locator.CComboItemLocator.click(CComboItemLocator.java:69)
at com.windowtester.internal.runtime.selector.ClickHelper.doClick(ClickHelper.java:178)
at com.windowtester.internal.runtime.selector.ClickHelper.click(ClickHelper.java:65)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:87)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:296)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:80)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:304)
at com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:73)
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:287)
at com.openet.workflow.acceptance.tests.If.testIf(If.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at com.windowtester.runtime.common.UITestCaseCommon.access$001(UITestCaseCommon.java:25)
at com.windowtester.runtime.common.UITestCaseCommon$2.run(UITestCaseCommon.java:136)
at com.windowtester.runtime.common.UITestCaseCommon$3.run(UITestCaseCommon.java:157)
at com.windowtester.internal.runtime.junit.core.SequenceRunner$1.run(SequenceRunner.java:46)
Last edited by win on Tue May 19, 2009 12:48 am, edited 1 time in total.
win
 
Posts: 7
Joined: Mon May 11, 2009 4:14 am

Re: CComboItemLocator is not working

Postby Phil Quitslund » Mon May 18, 2009 9:48 am

Can you verify that the combo is in fact visible at the time of failure? Is it possible that the view is not visible at the time of the failure or if it is, is it possible that the combo is not visible? If you post a screenshot at the time of the failure we can help assess.

Thanks!


-phil
--
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