Unable to record using window tester pro

237 views
Skip to first unread message

karthik kumar

unread,
Dec 12, 2011, 10:55:41 PM12/12/11
to windowtester-pro, karthik...@tcs.com
Hi,

I recently installed window tester pro in my eclipse helios version.
But whenever i try to start my swing application through recording
tool, application terminates silently without any errors in console.

I tried with the sample application (ContactManagerSwing). It is
working at one instance and not working at many instances.

All possible ways i tried. I uninstall and reinstalled window tester
pro beta. Its not working consistently.I am using jdk1.6.0_18.

Please help me in this.

Keerti Parthasarathy

unread,
Dec 13, 2011, 11:02:28 AM12/13/11
to windowte...@googlegroups.com
What package of helios have your installed? Is it the RCP?
--
Keerti

karthik kumar

unread,
Dec 14, 2011, 2:36:26 AM12/14/11
to windowtester-pro
Version: Helios Release
Build id: 20100617-1415
Eclipse Java EE IDE for Web Developers
Application Type : Swing

Please help us in this.
Window tester will really help us in many ways. We really want to use
it.
But we are unable to find root cause of this issue.


On Dec 13, 9:02 pm, Keerti Parthasarathy <keer...@google.com> wrote:
> What package of helios have your installed? Is it the RCP?
>

Keerti Parthasarathy

unread,
Dec 14, 2011, 10:56:23 AM12/14/11
to windowte...@googlegroups.com
Karthik,

You would need the download the eclipse for RCP/ RAP developers and then add on any of the tools you need for web development. In order to run, WindowTester needs some of the plugins that are shipped with the RCP package which may not be there in the EE IDE. 
--
Keerti

karthik kumar

unread,
Dec 16, 2011, 12:02:20 AM12/16/11
to windowtester-pro
Hi Keerti,

I downloaded Eclipse RCP/RAP version and installed window tester.
The same issue is coming.

I can launch my application through normal eclipse launcher.
But i cant do the same from window tester launcher. Application
terminated silently.

I tried with the sample application. It worked for first time.
Once i tried lauching my application, this sample appln also stopped
lauching.

This is happening with both Eclipse 3.6 and 3.7 RCP/RAP version.
Window tester tool will be more useful for my application.

Please help us in this.


On Dec 14, 8:56 pm, Keerti Parthasarathy <keer...@google.com> wrote:
> Karthik,
>
> You would need the download the eclipse for RCP/ RAP developers and then
> add on any of the tools you need for web development. In order to run,
> WindowTester needs some of the plugins that are shipped with the RCP
> package which may not be there in the EE IDE.
>

> Keerti- Hide quoted text -
>
> - Show quoted text -

karthik kumar

unread,
Dec 16, 2011, 4:15:00 AM12/16/11
to windowtester-pro
Hi Keerthi,

I have seen below two errors in eclipse error log
1)
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)


2)

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)

On Dec 14, 8:56 pm, Keerti Parthasarathy <keer...@google.com> wrote:
> Karthik,
>
> You would need the download the eclipse for RCP/ RAP developers and then
> add on any of the tools you need for web development. In order to run,
> WindowTester needs some of the plugins that are shipped with the RCP
> package which may not be there in the EE IDE.
>

Keerti Parthasarathy

unread,
Dec 16, 2011, 10:08:06 AM12/16/11
to windowte...@googlegroups.com
Karthik,

Not sure why you are running into these issues. Let me try this on my end and see what happens. On what platform are you running eclipse? Windows? Linux?
--
Keerti

karthik kumar

unread,
Dec 17, 2011, 5:42:46 AM12/17/11
to windowtester-pro
Windows xp only..

On Dec 16, 8:08 pm, Keerti Parthasarathy <keer...@google.com> wrote:
> Karthik,
>

> Not sure why you are running into these issues. Let me try this on my end
> and see what happens. On what platform are you running eclipse? Windows?
> Linux?
>

Keerti Parthasarathy

unread,
Dec 20, 2011, 11:35:15 AM12/20/11
to windowte...@googlegroups.com
Hi Karthik,

I tried the following on a windows 7 machine,

- new install of eclipse 3.7 (rap/rcp package)
- installed window tester
- clean workspace
- created contact manager swing project, ran and then was able to record interactions
- created another sample project, ran and then was able to record it too.

tried the two applications a couple of times, did not see any issues of the recorder dialog not coming up. The first time I launched a recording, the windows firewall manager did come up - asking for permission to allow eclipse access. In the past I have had problems with the firewall and not being able to record, might it be the same in your case? 

Let me know if there is something that is missing/different from my test setup and if so I can give it a another try.
--
Keerti

karthik kumar

unread,
Dec 23, 2011, 5:44:21 AM12/23/11
to windowtester-pro
Hi keerti,

Could u pls try with any swing application which uses JDBC.
Is there any JDBC limitation in window tester?

On Dec 20, 9:35 pm, Keerti Parthasarathy <keer...@google.com> wrote:
> Hi Karthik,
>
> I tried the following on a windows 7 machine,
>
> - new install of eclipse 3.7 (rap/rcp package)
> - installed window tester
> - clean workspace
> - created contact manager swing project, ran and then was able to record
> interactions
> - created another sample project, ran and then was able to record it too.
>
> tried the two applications a couple of times, did not see any issues of the
> recorder dialog not coming up. The first time I launched a recording, the
> windows firewall manager did come up - asking for permission to allow
> eclipse access. In the past I have had problems with the firewall and not
> being able to record, might it be the same in your case?
>
> Let me know if there is something that is missing/different from my test
> setup and if so I can give it a another try.
>

Keerti Parthasarathy

unread,
Dec 29, 2011, 2:25:00 PM12/29/11
to windowte...@googlegroups.com
Karthik,

Do you have a sample application that I could use.

Thanks,
--
Keerti

karthik kumar

unread,
Dec 30, 2011, 2:01:21 AM12/30/11
to windowtester-pro
Hi keerti,

As you asked, just am attaching sample JDBC code, which will try to
establish the connection with MySql DB. Please try to launch this code
from window tester.

package sample;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class DBCall {

/**
* @param args
*/

public static Connection createConnection()
{
Connection conn = null;

try
{
String userName = "root";
String password = "root";
String url = "jdbc:mysql://172.20.93.238/pos";
Class.forName ("com.mysql.jdbc.Driver").newInstance
();
conn = DriverManager.getConnection (url, userName,
password);
System.out.println ("Database connection
established");
return conn;
}
catch (Exception e)
{
System.err.println ("Cannot connect to database
server");
e.printStackTrace();
}
return conn;
}

public static void insertOrDelete(String query){
Connection conn=createConnection();
try{
Statement stmt = conn.createStatement();

stmt.executeUpdate(query);


}
catch(SQLException e){
System.err.println("Unable to insert!");
}

}

public static ResultSet selectQuery(String query){
Connection conn=createConnection();
try{
Statement stmt = conn.createStatement();

ResultSet rs = stmt.executeQuery(query);
conn.close();
return rs;
}
catch(SQLException e){
System.err.println("Unable to insert!");
return null;
}

}

public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Pass 1");
createConnection();

}

}


On Dec 30, 12:25 am, Keerti Parthasarathy <keer...@google.com> wrote:
> Karthik,
>
> Do you have a sample application that I could use.
>
> Thanks,
>

Venkata Prasad Reddy

unread,
Dec 16, 2015, 6:28:04 AM12/16/15
to windowtester-pro, karthik...@tcs.com, karthik...@gmail.com
Hi,

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, 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