Automation of an application written in java

Ask general questions here.
chstnq
Posts: 9
Joined: Tue May 20, 2008 7:59 am

Automation of an application written in java

Post by chstnq » Mon Oct 06, 2008 1:15 pm

I'm trying to automate an application which is written in java. Unfortunately I cannot gain control of any objects in the application. I also tried to find out with the RanorexSpyPro but it shows no results.
Are Java applications not supported at all?

regards,
Alex

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Mon Oct 06, 2008 2:41 pm

Hi Alex,

To automate applications with Ranorex it is necessary that your application uses windows based methods when drawing their GUI objects. So, if your application uses the Java standard widget toolkit library (SWT), Ranorex is able to get access and to automate this type of applications. Unfortunately, applications based on the Java SWING framework are currently not supported.

best regards,

Christoph
Ranorex Support Team

chstnq
Posts: 9
Joined: Tue May 20, 2008 7:59 am

Post by chstnq » Mon Oct 06, 2008 2:53 pm

Thanks for your answer. Is there already a planned release with supporting the Java SWING framework?

Regards,
Alex

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Mon Oct 06, 2008 3:31 pm

Unfortunately, there is no planned version release which includes the support of Java SWING applications. The priority of implementing a Java SWING plug-in for Ranorex depends on the number of requests for this feature.

best regards,

Christoph,
Ranorex Support Team

[email protected]
Posts: 3
Joined: Thu Feb 21, 2008 10:00 am

Post by [email protected] » Tue Dec 02, 2008 4:36 pm

I have the same Problem. I like the features of Ranorex very much, but our SUT is based on Swing and there is no chance to do anything with Ranorex 1.5 or 2.

(why AWT and SWT, but no Swing?)

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Tue Dec 02, 2008 5:03 pm

SWT is based on standard windows controls, whereas AWT and Swing are completely owner-drawn by the Java framework. Consequently, SWT supports standard control and accessibility features that make its GUI elements available to automation tools. AWT and Swing do not support these standard interfaces, but there own ones.

Regards,
Alex
Ranorex Support Team

tamiro
Posts: 10
Joined: Fri Apr 16, 2010 3:31 pm

Re: Automation of an application written in java

Post by tamiro » Mon Jun 07, 2010 4:51 pm

Add me to the count of those requesting Java SWING support. I was able to record some actions based on coordinates, but can't validate any results. Tried image based validation on the image of the Java SWING app window is blank.

kris123pra
Posts: 16
Joined: Fri Sep 17, 2010 8:13 am
Location: India

Re: Automation of an application written in java

Post by kris123pra » Sun Jul 03, 2011 3:37 am

Do we have java swing support added to any new release? Even I am facing the problem with one of our appln here. I am using Rx v2.3

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Automation of an application written in java

Post by Support Team » Mon Jul 04, 2011 4:13 pm

Hi,

please have a look at following forum post, which explains how to use our Java Plug-In:
Automation of Java AWT/Swing Applications with the Java Plug-In

Regards,
Tobias
Support Team
.
Image