Hi Igor,
thanks a lot. That did the trick to bring up the workbench.
It still doesn't fully work, but I want to first check a few things on
my side.
Regards,
-Max
On 12/12/2008 4:23 PM, Igor Fedorenko wrote:
By default, tycho uses headless osgi test launcher which does not
start workbench. To enable UI tests set useUIHarness
maven-osgi-test-plugin configuration parameter to true, somethine like
this
<plugin>
<groupId>org.codehaus.tycho</groupId>
<artifactId>maven-osgi-test-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
</configuration>
</plugin>
Let me know if this helps.
--
Regards,
Igor
Max Spring wrote:
I have a unit test which uses WindowTester to launch an Eclipse
workbench, do some GUI action and then close the workbench again.
The test case executes fine when launched from a PDE.
I want to launch this test case with Tycho (on Linux).
With Tycho no workbench shows up and the test case seems to hang.
As soon as I click anywhere, I get the exception shown below.
I'd be very thankful for any clue about how to tackle this.
-Max
com.windowtester.runtime.swt.finder.UnableToFindActiveShellException
at
com.windowtester.finder.swt.WidgetFinderService.collectMatchesIn(WidgetFinderService.java:81)
at
com.windowtester.finder.swt.WidgetFinderService.collectMatches(WidgetFinderService.java:69)
at
com.windowtester.finder.swt.SWTWidgetFinder.findAll(SWTWidgetFinder.java:70)
at
com.windowtester.runtime.WidgetLocator.findAll(WidgetLocator.java:429)
at
com.windowtester.runtime.swt.internal.UIContextSWT.findAll(UIContextSWT.java:498)
at
com.windowtester.runtime.swt.internal.UIContextSWT.find(UIContextSWT.java:433)
at
com.windowtester.runtime.swt.locator.MenuItemLocator.click(MenuItemLocator.java:88)
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:83)
at
com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:280)
at
com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:76)
at
com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:288)
at
com.windowtester.internal.runtime.UIContextCommon.click(UIContextCommon.java:69)
at
com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:271)
at com.cisco.surf.junit.test.MailTest.testMail(MailTest.java:21)
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email