getting tests written for WindowTester 3.8.1 to run on 6.0.0

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

getting tests written for WindowTester 3.8.1 to run on 6.0.0

Postby vogonpoet » Mon Oct 04, 2010 12:25 pm

I have had to revive some tests written and running against WT 3.8.1. We have a still-valid license and the license is on a linux box. The tests work fine on that linux box running WT 3.8.1. I saw that WT is now free from google so I installed it (v 6.0.0) in my local Windows box (never had WT installed before) running Eclipse 3.4.1 and I cannot get some of the tests to run. The tests that extend from TestCase run fine. The tests that extend from UITestCaseSWT will NOT run. I get the stack trace pasted below when trying to run them. I have spent about 2 hours googling trying to figure out how to fix this and have gotten nowhere. HELP!

org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Another singleton version selected: org.eclipse.equinox.simpleconfigurator_1.0.100.v201008301800_r35
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257)
at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.startBundles(Unknown Source)
at org.eclipse.equinox.internal.simpleconfigurator.ConfigApplier.install(Unknown Source)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(Unknown Source)
at org.eclipse.equinox.internal.simpleconfigurator.SimpleConfiguratorImpl.applyConfiguration(Unknown Source)
at org.eclipse.equinox.internal.simpleconfigurator.Activator.start(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(StartLevelManager.java:247)
at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBundle.java:201)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:644)
at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:313)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Exception in thread "WorkbenchTestable" org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError: com/windowtester/runtime/condition/ICondition)
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:194)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4251)
at org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(WorkbenchTestable.java:109)
at org.eclipse.pde.internal.junit.runtime.UITestApplication.runTests(UITestApplication.java:112)
at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:68)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: com/windowtester/runtime/condition/ICondition
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:99)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:62)
at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run(UITestApplication.java:114)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.pde.internal.junit.runtime.UITestApplication.start(UITestApplication.java:46)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.ClassNotFoundException: com.windowtester.runtime.condition.ICondition
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 37 more
Last edited by vogonpoet on Tue Oct 05, 2010 5:31 am, edited 1 time in total.
vogonpoet
 
Posts: 4
Joined: Mon Oct 04, 2010 12:12 pm

Re: getting tests written for WindowTester 3.8.1 to run on 6

Postby klaraward » Tue Oct 05, 2010 4:45 am

Just a sanity check I do when I get similar problems.
Have you tried the Validate Plug-Ins button in your launch configuration, Plug-Ins tab?
klaraward
 
Posts: 11
Joined: Tue Apr 13, 2010 1:33 am

Re: getting tests written for WindowTester 3.8.1 to run on 6

Postby vogonpoet » Tue Oct 05, 2010 5:30 am

klaraward wrote:Just a sanity check I do when I get similar problems.
Have you tried the Validate Plug-Ins button in your launch configuration, Plug-Ins tab?


Yes. No problems. Like I said, WindowTester works fine on the tests that extend TestCase, it's only the ones that extend UITestCaseSWT that give me this problem.

I found some info on upgrading to 5.0 and tried those things but those didn't help either.
vogonpoet
 
Posts: 4
Joined: Mon Oct 04, 2010 12:12 pm

Re: getting tests written for WindowTester 3.8.1 to run on 6

Postby keertip » Tue Oct 05, 2010 9:41 am

Have you run the migration tool on your tests?

http://code.google.com/webtoolkit/tools ... ation.html
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: getting tests written for WindowTester 3.8.1 to run on 6

Postby vogonpoet » Tue Oct 05, 2010 1:09 pm

keertip wrote:Have you run the migration tool on your tests?

http://code.google.com/webtoolkit/tools ... ation.html

yep :)
vogonpoet
 
Posts: 4
Joined: Mon Oct 04, 2010 12:12 pm

Re: getting tests written for WindowTester 3.8.1 to run on 6

Postby vogonpoet » Tue Oct 05, 2010 1:10 pm

ok, I have figured out one part of it... turns out I did have an old windowtester installed (thanks to Pulse) and I assume that was causing major conflicts/problems. I just installed a NEW Eclipse and installed WT 6.0 into it (because I could NOT uninstall the old WT). I'm hoping that this path will offer less resistance.
vogonpoet
 
Posts: 4
Joined: Mon Oct 04, 2010 12:12 pm

Re: getting tests written for WindowTester 3.8.1 to run on 6

Postby keertip » Mon Oct 11, 2010 9:44 am

Did you get the tests running on 6.0 ?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron