Windows Tester fails to record anything.

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

Windows Tester fails to record anything.

Postby writetosethu » Fri Dec 17, 2010 12:08 am

Hi,
Windows tester fails to record anything. I am new to this. I am testing a swing application. When I click on record and provide my main class to it, it just terminates. There are no log events of my application start up on the console either. I see 2 errors in the error log of eclipse. I have attached the same.

These are the details of my system:
Eclipse - Helios Release 1- Build id: 20100917-0705
java - 1.6.0_22
OS - Win XP

The jars I have in my classpath- I have attached the listing of the same.

Thanks
Sethu
Attachments
Jars in Classpath.txt
(2.48 KiB) Downloaded 29 times
eclipse-errorlog.log
(5.82 KiB) Downloaded 38 times
writetosethu
 
Posts: 3
Joined: Thu Dec 16, 2010 11:59 pm

Re: Windows Tester fails to record anything.

Postby keertip » Fri Dec 17, 2010 8:58 am

Are you able to run your swing application in eclipse? Does it launch?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Windows Tester fails to record anything.

Postby writetosethu » Fri Dec 17, 2010 6:42 pm

Yes very much. If I dont run it from within the window tester pro record it runs. And it has been so for a long time. I only just downloaded windows tester pro plugin.
writetosethu
 
Posts: 3
Joined: Thu Dec 16, 2010 11:59 pm

Re: Windows Tester fails to record anything.

Postby keertip » Mon Dec 20, 2010 10:04 am

Will look into this and get back to you.
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Windows Tester fails to record anything.

Postby keertip » Tue Dec 21, 2010 10:58 am

We are not able to recreate this problem at our end. Could you try the sample application ContactManagerSwing (File > New > Other > WindowTester > Contact Manager Swing Example Project) and see whether you can recreate the problem?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Windows Tester fails to record anything.

Postby writetosethu » Fri Dec 24, 2010 6:14 am

Hi,

I get the exact same error with the Sample application project as well. Same 2 error logs in eclipse. I was able to run ContactManagerSwing without the recorder.

Thanks
Sethu
writetosethu
 
Posts: 3
Joined: Thu Dec 16, 2010 11:59 pm

Re: Windows Tester fails to record anything.

Postby nocivus » Tue Jan 04, 2011 6:05 am

The exact same problem occurs in my application. Running eclipse 3.6.1 on OSX with java 6.
nocivus
 
Posts: 10
Joined: Tue Jan 04, 2011 6:02 am

Re: Windows Tester fails to record anything.

Postby keertip » Wed Jan 05, 2011 8:59 am

Unfortunately, still not able to reproduce this problem at our end. Could you switch to a clean workspace, import the sample project and try recording? If that fails, uninstall WindowTester and then reinstall it. Update site is listed at http://code.google.com/javadevtools/dow ... ester.html
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Windows Tester fails to record anything.

Postby nocivus » Wed Jan 05, 2011 9:20 am

Happens exactly the same thing: The recording window briefly appears then goes away and the configuration silently stops. Nothing in the "Error Log" view, and i'm attaching my output from the console. Is there any other place i can look for errors being logged? Thanks.

BTW, the app runs fine if not launched via the Recorder...

Screen shot 2011-01-05 at 6.24.49 PM.png
Screen shot 2011-01-05 at 6.24.49 PM.png (37.86 KiB) Viewed 364 times
nocivus
 
Posts: 10
Joined: Tue Jan 04, 2011 6:02 am

Re: Windows Tester fails to record anything.

Postby keertip » Thu Jan 06, 2011 12:28 pm

Did you try this in a clean new workspace? Did that help? This is a very puzzling issue, and having a bit of difficulty in pinning down the problem. The places to look for errors would be the Error log view, .log file in your workspace metadata and the console view.
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Windows Tester fails to record anything.

Postby nocivus » Thu Jan 06, 2011 11:56 pm

Yes, fresh workspace.

In any case, i think we have a stacktrace, finally - taken from the .log file in the metadata folder. I hope it helps :)
Code: Select all
!SESSION 2011-01-05 18:23:25.211 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product -keyring /Users/pedroassuncao/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -data /Users/pedroassuncao/Desktop/suren -product org.eclipse.epp.package.java.product -keyring /Users/pedroassuncao/.eclipse_keyring -showlocation

!ENTRY org.eclipse.core.net 1 0 2011-01-05 18:23:31.198
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!SESSION 2011-01-05 18:30:50.810 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product --help
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -data /Users/pedroassuncao/Desktop/suren -product org.eclipse.epp.package.java.product --help

!ENTRY org.eclipse.core.net 1 0 2011-01-05 18:30:56.243
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!SESSION 2011-01-05 18:31:07.331 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.core.net 1 0 2011-01-05 18:31:12.554
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences

!ENTRY org.eclipse.debug.core 4 2 2011-01-05 18:31:25.895
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed: Ignoring unexpected call to IWorkbenchSiteProgressService.decrementBusy().  This might be due to an earlier call to this method.
        at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
        at org.eclipse.ui.internal.progress.WorkbenchSiteProgressService.decrementBusy(WorkbenchSiteProgressService.java:423)
        at com.windowtester.eclipse.ui.views.RecorderConsoleView$1.ended(RecorderConsoleView.java:211)
        at com.windowtester.eclipse.ui.session.SessionMonitor.sessionEnded(SessionMonitor.java:35)
        at com.windowtester.eclipse.ui.UiPlugin.sessionEnded(UiPlugin.java:167)
        at com.windowtester.ui.session.RecordingSessionManager.end(RecordingSessionManager.java:136)
        at com.windowtester.recorder.ui.RecordingSessionController.stopSession(RecordingSessionController.java:291)
        at com.windowtester.recorder.ui.RecordingSessionController.handleDebugEvents(RecordingSessionController.java:266)
        at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1089)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1123)
        at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:390)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.debug.core 4 125 2011-01-05 18:31:25.900
!MESSAGE An exception occurred while dispatching debug events.
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed: Ignoring unexpected call to IWorkbenchSiteProgressService.decrementBusy().  This might be due to an earlier call to this method.
        at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
        at org.eclipse.ui.internal.progress.WorkbenchSiteProgressService.decrementBusy(WorkbenchSiteProgressService.java:423)
        at com.windowtester.eclipse.ui.views.RecorderConsoleView$1.ended(RecorderConsoleView.java:211)
        at com.windowtester.eclipse.ui.session.SessionMonitor.sessionEnded(SessionMonitor.java:35)
        at com.windowtester.eclipse.ui.UiPlugin.sessionEnded(UiPlugin.java:167)
        at com.windowtester.ui.session.RecordingSessionManager.end(RecordingSessionManager.java:136)
        at com.windowtester.recorder.ui.RecordingSessionController.stopSession(RecordingSessionController.java:291)
        at com.windowtester.recorder.ui.RecordingSessionController.handleDebugEvents(RecordingSessionController.java:266)
        at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1089)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1123)
        at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:390)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
!SESSION 2011-01-05 18:33:05.646 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -consoleLog

!ENTRY org.eclipse.core.net 1 0 2011-01-05 18:33:10.444
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
!SESSION 2011-01-05 18:34:34.927 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -consoleLog -debug

!ENTRY org.eclipse.core.net 1 0 2011-01-05 18:34:39.952
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
nocivus
 
Posts: 10
Joined: Tue Jan 04, 2011 6:02 am

Re: Windows Tester fails to record anything.

Postby keertip » Mon Jan 10, 2011 9:53 am

Still stumped as to why the application terminates and the recorder fails to launch. There are no clues pertaining to this in the log.
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Windows Tester fails to record anything.

Postby nocivus » Tue Jan 11, 2011 3:35 am

I don't know what else i could provide :(

My laptop is a macbook-pro, but it happens for a colleague of mine that is using a pc running windows xp, so i'm pretty sure it's not something mac specific.

We both are running jdk 1.6.

I would love to use this tool, it would save me tons of time testing my desktop swing app. Isn't there a nightly build with more debugging info around that i could try?
nocivus
 
Posts: 10
Joined: Tue Jan 04, 2011 6:02 am

Re: Windows Tester fails to record anything.

Postby keertip » Wed Jan 12, 2011 9:19 am

We could reproduce the problem at our end, but it does have us puzzled as to why. Though if we do go to a new workspace, the recording then works. Could you do the following and see if it works?

File > Switch Workspace > Other - create a new workspace
In the new workspace, File > Import > WindowTester > Contact Manager Swing Application Project
Run the application and then try a recording.
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: Windows Tester fails to record anything.

Postby nocivus » Thu Jan 13, 2011 1:23 am

I have tried that before. The same thing happens :(

Besides, it doesn't really help me if it would only work on the example, since i need it to run with my project :)
nocivus
 
Posts: 10
Joined: Tue Jan 04, 2011 6:02 am

Next

Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron