Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] running SWTBot tests with Buckminster on hudson.eclipse.org

I applied the patch locally and was able to run our SWTBot tests on my machine again using an Indigo M6 installation and a JUnitPlugin-Test configuration with Run in UI thread set to false. The error you mentioned didn’t appear in my use case.
Yes, it also works for me when testing locally on my machine, and running the test directly from Eclipse.
I only have the error when trying to run the test using Buckminster on hudson.eclipse.org.
As it's the first time I try to run SWTBot tests with Buckminster, I don't know whether the problem is related with Bug 340906 or not.

How did you get the patch applied on Hudson?
I imported plug-in org.eclipse.pde.junit.runtime in my workspace, applied the patch, exported the plug-in, put it in my Buckminster installation, and edited buckminster/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info to use the new plug-in
I also checked by running "buckminster -noExit -console" and typing "ss" in the OSGi console that the new version was used.

On Wed, Apr 6, 2011 at 5:05 PM, Wenz, Michael <michael.wenz@xxxxxxx> wrote:

Nicolas,

 

I applied the patch locally and was able to run our SWTBot tests on my machine again using an Indigo M6 installation and a JUnitPlugin-Test configuration with Run in UI thread set to false. The error you mentioned didn’t appear in my use case.

 

How did you get the patch applied on Hudson?

 

Michael

 

From: cross-project-issues-dev-bounces@xxxxxxxxxxx [mailto:cross-project-issues-dev-bounces@xxxxxxxxxxx] On Behalf Of Nicolas Bros
Sent: Mittwoch, 6. April 2011 15:11
To: cross-project-issues-dev
Subject: [cross-project-issues-dev] running SWTBot tests with Buckminster on hudson.eclipse.org

 

Hi,

 

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:

 

org.eclipse.swt.gtk.linux.x86_64_3.7.0.v3724c.jar

org.eclipse.swt_3.7.0.v3724c.jar

 

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 hudson.eclipse.org?

 

 

[2] https://bugs.eclipse.org/bugs/attachment.cgi?id=192617

--
Nicolas Bros
R&D
tel: 06 75 09 19 88
nbros@xxxxxxxxxxxxxxxx
nbros.mia@xxxxxxxxx
Mia-Software, 410 clos de la Courtine
93160 Noisy-le-Grand
http://www.mia-software.com
.: model driven agility :.


_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev




--
Nicolas Bros
R&D
tel: 06 75 09 19 88
nbros@xxxxxxxxxxxxxxxx
nbros.mia@xxxxxxxxx
Mia-Software, 410 clos de la Courtine
93160 Noisy-le-Grand
http://www.mia-software.com
.: model driven agility :.

Back to the top