WindowTestRunner and ContactManagerRCPTest

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

WindowTestRunner and ContactManagerRCPTest

Postby nsajjan » Tue Feb 02, 2010 2:24 pm

Hi,
I am trying to automate the recorded tests for my product by following the sample provided in WindowTestRunner.zip on your website. New to eclipse world and bumping to issues that could be trivial. Could you please explain how the ContactManagerRCPTest.zip was made from the rcpContactManager example project?
Was it exported as a "Archive File" or "Plug-in Development > Deployable features"?
I tried exporting my test project as a .jar file and included in the 'samples' folder. Modified the ant xml files (run.xml and macros.xml). When I run the test (with the run.bat), my product is invoked and nothing happens from there. The test-out.txt indicates that the plug-in could not be found.
Any help here is appreciated.

Thanks,
NSajjan
Code: Select all
java.lang.Exception: Could not find plugin "M3TestProject_01"
   at com.windowtester.runner.EclipseTestRunner.loadSuiteClass(EclipseTestRunner.java:296)
   at com.windowtester.runner.EclipseTestRunner.getTest(EclipseTestRunner.java:229)
   at com.windowtester.runner.EclipseTestRunner.<init>(EclipseTestRunner.java:212)
   at com.windowtester.runner.EclipseTestRunner.run(EclipseTestRunner.java:196)
   at com.windowtester.runner.LocalTestRunner$1$2.run(LocalTestRunner.java:161)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
   at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
   at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
   at com.windowtester.runner.LocalTestRunner.launchApplication(LocalTestRunner.java:125)
   at com.windowtester.runner.LocalTestRunner.run(LocalTestRunner.java:74)
   at com.windowtester.runner.WindowTesterRunner.run(WindowTesterRunner.java:39)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   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:368)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
   at org.eclipse.core.launcher.Main.main(Main.java:34)
nsajjan
 
Posts: 4
Joined: Thu Jan 28, 2010 7:26 am

Re: WindowTestRunner and ContactManagerRCPTest

Postby keertip » Tue Feb 02, 2010 2:53 pm

1. If you have defined a feature for your plug-in, then do a File > Export > Plug-in Development > Deployable features , select the feature, specify to Archive file and enter name, click Finish.

2. If there is no feature, then do a File > Export > Plug-in Development > Deployable plug-ins and fragments , select the plug-ins to export, specify to Archive file and enter name, click Finish.

3. If there is a product definition for your application, then do a File > Export > Plug-in Development > Eclipse Product > select the configuration file, specify to Archive file and enter name, click Finish.

Also take a look at

http://downloads.instantiations.com/Win ... ample.html

for instructions on how to run your application with WindowTesterRunner.
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