Unable to record Eclipse RCP app

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

Unable to record Eclipse RCP app

Postby Jacek » Fri Nov 28, 2008 6:05 am

I am running the evaluation version in Eclipse 3.4.1. I go to Record -> Record Configurations... -> Eclipse Application -> my app's launcher

I press Record, the application starts.

However, in the Recorder Console view the "Record" button is disabled, I cannot press it to start recording.

Any ideas?
Jacek
 
Posts: 13
Joined: Mon Nov 24, 2008 11:18 am

Re: Unable to record Eclipse RCP app

Postby Jacek » Fri Nov 28, 2008 11:25 am

We have a highly customized target platform, so this is probably the root cause. I tried adding all the bundles that WindowTester requires, but I am still getting this in the log:

!SESSION 2008-11-28 08:45:43.168 -----------------------------------------------
eclipse.buildId=M20080911-1700
java.version=1.6.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA
Command-line arguments: -os win32 -ws win32 -arch x86 -clean

!ENTRY org.eclipse.equinox.p2.director 2 0 2008-11-28 08:46:53.043
!MESSAGE Problems resolving provisioning plan.
!SUBENTRY 1 org.eclipse.equinox.p2.director 2 0 2008-11-28 08:46:53.043
!MESSAGE Unable to satisfy dependency from com.windowtester.runtime.ant 3.6.1.200811170932 to requiredCapability: osgi.bundle/org.eclipse.test/3.0.0.
!SUBENTRY 1 org.eclipse.equinox.p2.director 2 0 2008-11-28 08:46:53.043
!MESSAGE Unable to satisfy dependency from com.windowtester.swt.feature.group 3.6.1.200811170932 to requiredCapability: org.eclipse.equinox.p2.iu/com.windowtester.swt.macosx/[3.6.1.200811170932,3.6.1.200811170932].

!ENTRY com.instantiations.eclipse 1 0 2008-11-28 08:48:21.418
!MESSAGE WindowTester Build 200811170932

!ENTRY com.instantiations.eclipse 1 0 2008-11-28 08:53:55.308
!MESSAGE Failed to determine version of plugin com.instantiations.designer.core

!ENTRY org.eclipse.debug.core 4 2 2008-11-28 08:56:41.136
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
!STACK 0
java.lang.NullPointerException
at com.windowtester.ui.session.RecordingSessionManager.closeDashboard(RecordingSessionManager.java:150)
at com.windowtester.ui.session.RecordingSessionManager.end(RecordingSessionManager.java:142)
at com.windowtester.recorder.ui.RecordingSessionController.stopSession(RecordingSessionController.java:296)
at com.windowtester.recorder.ui.RecordingSessionController.handleDebugEvents(RecordingSessionController.java:271)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1069)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1103)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:374)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.debug.core 4 125 2008-11-28 08:56:41.136
!MESSAGE An exception occurred while dispatching debug events.
!STACK 0
java.lang.NullPointerException
at com.windowtester.ui.session.RecordingSessionManager.closeDashboard(RecordingSessionManager.java:150)
at com.windowtester.ui.session.RecordingSessionManager.end(RecordingSessionManager.java:142)
at com.windowtester.recorder.ui.RecordingSessionController.stopSession(RecordingSessionController.java:296)
at com.windowtester.recorder.ui.RecordingSessionController.handleDebugEvents(RecordingSessionController.java:271)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1069)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1103)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:374)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.debug.core 4 2 2008-11-28 09:02:11.605
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
!STACK 0
java.lang.NullPointerException
at com.windowtester.ui.session.RecordingSessionManager.closeDashboard(RecordingSessionManager.java:150)
at com.windowtester.ui.session.RecordingSessionManager.end(RecordingSessionManager.java:142)
at com.windowtester.recorder.ui.RecordingSessionController.stopSession(RecordingSessionController.java:296)
at com.windowtester.recorder.ui.RecordingSessionController.handleDebugEvents(RecordingSessionController.java:271)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1069)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1103)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:374)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.debug.core 4 125 2008-11-28 09:02:11.605
!MESSAGE An exception occurred while dispatching debug events.
!STACK 0
java.lang.NullPointerException
at com.windowtester.ui.session.RecordingSessionManager.closeDashboard(RecordingSessionManager.java:150)
at com.windowtester.ui.session.RecordingSessionManager.end(RecordingSessionManager.java:142)
at com.windowtester.recorder.ui.RecordingSessionController.stopSession(RecordingSessionController.java:296)
at com.windowtester.recorder.ui.RecordingSessionController.handleDebugEvents(RecordingSessionController.java:271)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1069)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1103)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:374)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.debug.core 4 2 2008-11-28 09:15:29.074
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
!STACK 0
java.lang.NullPointerException
at com.windowtester.ui.session.RecordingSessionManager.closeDashboard(RecordingSessionManager.java:150)
at com.windowtester.ui.session.RecordingSessionManager.end(RecordingSessionManager.java:142)
at com.windowtester.recorder.ui.RecordingSessionController.stopSession(RecordingSessionController.java:296)
at com.windowtester.recorder.ui.RecordingSessionController.handleDebugEvents(RecordingSessionController.java:271)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1069)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1103)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:374)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.debug.core 4 125 2008-11-28 09:15:29.074
!MESSAGE An exception occurred while dispatching debug events.
!STACK 0
java.lang.NullPointerException
at com.windowtester.ui.session.RecordingSessionManager.closeDashboard(RecordingSessionManager.java:150)
at com.windowtester.ui.session.RecordingSessionManager.end(RecordingSessionManager.java:142)
at com.windowtester.recorder.ui.RecordingSessionController.stopSession(RecordingSessionController.java:296)
at com.windowtester.recorder.ui.RecordingSessionController.handleDebugEvents(RecordingSessionController.java:271)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1069)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1103)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:374)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


I do have the org.eclipse.equinox.p2.director and org.eclipse.equinox.p2.iu bundles selected in the Plugins tab for the Record configuration...
Jacek
 
Posts: 13
Joined: Mon Nov 24, 2008 11:18 am

Re: Unable to record Eclipse RCP app

Postby gnebling » Sat Nov 29, 2008 10:47 pm

For custom targets, have you tried the following?
http://downloads.instantiations.com/Win ... rgets.html
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am

Re: Unable to record Eclipse RCP app

Postby Jacek » Mon Dec 01, 2008 4:49 am

Thanks for the tip, I will try it ASAP.
Jacek
 
Posts: 13
Joined: Mon Nov 24, 2008 11:18 am

Re: Unable to record Eclipse RCP app

Postby Jacek » Mon Dec 01, 2008 5:40 am

That fixed up the Recorder issue, it pops up now properly.

However, I am getting exceptions in our application code when running with the recorder. Possibly related to all the complex SWT/Swing integration we have.

Can you give me some background info on how WindowTester runs the app in record mode (in terms of threading requirements) so I can debug this further on our side?
Jacek
 
Posts: 13
Joined: Mon Nov 24, 2008 11:18 am

Re: Unable to record Eclipse RCP app

Postby Jacek » Mon Dec 01, 2008 6:53 am

OK, I managed to get everything working and I am able to record a test and put it into a new plugin. I see WindowTester has added all the test plugin dependencies, nice.

However, when I run the app using the regular Eclipse JUnit functionality it does not pop up my application, instead it just pops up a blank new Eclipse RCP app with none of our bundles.

I guess somewhere in the runtime configuration for the JUnit test I should tell it also which launch configuration to use when running the test?


P.S. EDIT: D'oh...of course, sorry for the question...changed the JUnit launch config to point to the proper product
Jacek
 
Posts: 13
Joined: Mon Nov 24, 2008 11:18 am

Re: Unable to record Eclipse RCP app

Postby Phil Quitslund » Thu Dec 04, 2008 7:13 pm

Thanks for following up on this. The truth is that it should really be much easier to set this up and there should be some diagnostic support (e.g., it should not just silently fail). The good news (for everyone else) is we've had this issue on the radar for a bit and your feedback is helping push ahead the implementation of some solutions. Many thanks!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest