Problem with running a test

40 views
Skip to first unread message

witek

unread,
Jul 26, 2011, 11:25:47 AM7/26/11
to windowtester-pro
I'm trying to run a test on my swing project and I've never succeed.
The project is quite a big java application with gui in swing. There
were a few similar topic on the old forum but the links with solutions
are broken or I cannot switch to a next page. On faq there was a short
note about random errors occurred during trying to generate the test
but I've tried to install plugins on the new eclipse few times, also
I've tried clean the configuration directory. I'll appreciate your
help or any suggestions. I'm pasting an Eclipse log below:


!SESSION 2011-07-26 16:27:53.962
-----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY com.instantiations.eclipse 1 0 2011-07-26 16:44:25.670
!MESSAGE Failed to determine version of plugin
com.instantiations.eclipse.application.audit

!ENTRY com.instantiations.eclipse 1 0 2011-07-26 16:44:25.748
!MESSAGE Failed to determine version of plugin
com.instantiations.profiler.ui

!ENTRY com.instantiations.eclipse 1 0 2011-07-26 16:44:25.764
!MESSAGE Failed to determine version of plugin
com.instantiations.designer.core

!ENTRY org.eclipse.ui 4 0 2011-07-26 16:47:11.296
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at
org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:
1688)
at
org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:
734)
at org.eclipse.ui.internal.WorkbenchWindow.access
$0(WorkbenchWindow.java:710)
at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:
832)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:
70)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:
830)
at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:
741)
at org.eclipse.jface.window.Window$3.shellClosed(Window.java:687)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
98)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:
308)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:
1665)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4164)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:
1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:497)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4253)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:
1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:497)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4253)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:
1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at
org.eclipse.ui.internal.WorkbenchWindow.canHandleShellCloseEvent(WorkbenchWindow.java:
817)
at org.eclipse.jface.window.Window$3.shellClosed(Window.java:686)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
98)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:
308)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:
1665)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4164)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:
1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:497)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4253)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:
1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:497)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4253)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:
1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at
org.eclipse.ui.internal.WorkbenchWindow.canHandleShellCloseEvent(WorkbenchWindow.java:
817)
at org.eclipse.jface.window.Window$3.shellClosed(Window.java:686)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
98)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:
308)
at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:
1665)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4164)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:
1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:497)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4253)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:
1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2454)
at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:497)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4253)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:
1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2459)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3655)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
115)
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:
369)
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:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

Keerti Parthasarathy

unread,
Jul 26, 2011, 12:00:33 PM7/26/11
to windowte...@googlegroups.com
Hi,

Which version of eclipse and WindowTester are you using?
--
Keerti

witek

unread,
Jul 26, 2011, 1:12:33 PM7/26/11
to windowtester-pro
Window tester for eclipse version 3.6 and eclipse 3.6. I've check and
in Window->preferences->window tester and there are no note about
wrong version. (which I 've seen before when I installed it for
eclipse 3.7 :P)

Keerti Parthasarathy

unread,
Jul 26, 2011, 1:32:50 PM7/26/11
to windowte...@googlegroups.com
Did you try recording and running tests with the sample ContactManagerSwing application? Did it work? If not, could you try that?
--
Keerti

witek

unread,
Jul 27, 2011, 3:35:33 AM7/27/11
to windowtester-pro
The ContactManagerSwing didn't work. Strange thing is that if I run
the test on ContactManagerSwing on freshly downloaded eclipse with a
new workspace tests work (In fact tests worked also on eclipse 3.7).
I'm pasting a log (run on version where I tried to record my project)

!SESSION 2011-07-27 09:11:10.538
-----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.java.product

!ENTRY com.instantiations.eclipse 1 0 2011-07-27 09:12:31.881
!MESSAGE Failed to determine version of plugin
com.instantiations.eclipse.application.audit

!ENTRY com.instantiations.eclipse 1 0 2011-07-27 09:12:31.928
!MESSAGE Failed to determine version of plugin
com.instantiations.profiler.ui

!ENTRY com.instantiations.eclipse 1 0 2011-07-27 09:12:31.959

witek

unread,
Jul 27, 2011, 8:15:26 AM7/27/11
to windowtester-pro
I tried to run it on eclipse ver 3.5 and appropriate ver of window
tester and I succeed. But there is other problem with the working
directory.It didn't change regardless of setting it in record
configuration (record configuration->arguments->workspace-> other) so
the application don't work properly. The problem didn't occur when I
run it instead of testing. I checked and it passing the vm parameters,
and adding jar files. Maybe you know other way to set the working
directory to bypass the problem?
Anyway thank you for your replies.

Gina Nebling

unread,
Aug 3, 2011, 5:08:10 PM8/3/11
to windowtester-pro
I tried changing the working directory and it seems to be working
fine. Is the working directory actually not being set or could be
something else.
What's in the directory you're trying to use?
I'm not sure but there might be a way to set the working directory in
the Program arguments.

Venkata Prasad Reddy

unread,
Dec 16, 2015, 6:09:09 AM12/16/15
to windowtester-pro, witold...@gmail.com
Hi All,

I am able to Record and Play ContactManagerRPC Application which is provided by Window Tester Pro Team, but I dont know the steps for Recording and Playing my own Java Swing Application.

Please tell me any one, Steps for Recording and Playing Application (Not provided by Window Tester Pro Team).

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages