Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cross-project-issues-dev] running SWTBot tests with Buckminster on


I'm trying to run our SWTBot tests with Buckminster.
I have found that I cannot use the SWTBot launch configuration (org.eclipse.swtbot.eclipse.ui.launcher.JunitLaunchConfig) [1] because it cannot be used in Buckminster headless.
So, I'm using "org.eclipse.pde.ui.JunitLaunchConfig" instead, with run_in_ui_thread = false, and with a patch that fixes the regression in 3.7 when run_in_ui_thread is false [2].

But I'm stuck on this error:

An error occurred while automatically activating bundle org.eclipse.ui.workbench
org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError

Which then causes :
org.eclipse.core.runtime.CoreException: Plug-in "org.eclipse.ui.ide.application" was unable to instantiate class "org.eclipse.ui.internal.ide.application.IDEApplication".
caused by: java.lang.NoClassDefFoundError: org/eclipse/ui/application/WorkbenchAdvisor

(these errors appear in the log in "workspace/.metadata/.plugins/org.eclipse.pde.core/AllUITests/1302092609229.log")

Yet both the SWT plug-in and its platform-specific fragment are in my target platform:


I checked, and SWTError is in jar org.eclipse.swt.gtk.linux.x86_64_3.7.0.v3724c.jar.
And I have "-os linux -ws gtk -arch x86_64" in my log, so it would seem to match.
And I have no message in my log about an unresolved SWT jar.

Has anyone successfully run SWTBot tests with Buckminster on


Nicolas Bros
tel: 06 75 09 19 88
Mia-Software, 410 clos de la Courtine
93160 Noisy-le-Grand
.: model driven agility :.

Back to the top