Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Workspace issue in SWTBot test
Workspace issue in SWTBot test [message #872605] Wed, 16 May 2012 12:45
Mladen Mijatovic is currently offline Mladen MijatovicFriend
Messages: 7
Registered: August 2011
Junior Member
Is it possible to switch workspace from SWTBot eclipse test or there is some limitations in these kind of GUI tests? I tried following :"New").menu("Switch Workspace").menu("Other").click();
SWTBotShell shell ="Workspace Launcher").activate();

And it gave me an error that eclipse.vm property can't be found. After that I set in run conf. for SWTBot test argument "-vm /usr/java/jdk_1.6.0_26/jre/bin" and it fix the error with vm but then SWTBot breaks with exception:


!ENTRY org.eclipse.osgi 4 0 2012-05-16 14:37:16.679
!MESSAGE Application error
org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTException: Widget is disposed)
at org.eclipse.swt.SWT.error(
at org.eclipse.swt.SWT.error(
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
at org.eclipse.swt.widgets.Display.runAsyncMessages(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.swt.widgets.Display.release(
at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
at org.eclipse.swtbot.eclipse.core.UITestApplication.start(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at Source)
at Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(
Caused by: org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(
at org.eclipse.swt.SWT.error(
at org.eclipse.swt.SWT.error(
at org.eclipse.swt.widgets.Widget.error(
at org.eclipse.swt.widgets.Widget.checkWidget(
at org.eclipse.swt.widgets.Decorations.getMenuBar(
at org.eclipse.swtbot.swt.finder.finders.MenuFinder$
at org.eclipse.swtbot.swt.finder.finders.MenuFinder$
at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable$2.doRun(
at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable$
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(
... 19 more
Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.progress.AnimationManager$1
Previous Topic:How Import Projects with Swtbot
Next Topic:Error in MANIFEST.MF of SWTBot test plugin
Goto Forum:

Current Time: Tue Jun 19 14:45:23 GMT 2018

Powered by FUDForum. Page generated in 0.01450 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top