<

Java Applets

Rapise supports the testing of Java applets running inside web pages and web applications. Rapise can be used to test applets built with either the Abstract Window Toolkit (AWT) or Swing graphic user interface toolkit. For maximum flexibility, Rapise can connect to your choice of JVM.

Rich Internet Applications using Java AWT

Rapise can test web applications using a combination of HTML and embedded Java AWT applets within a single application using a single test script. Rapise can test such hybrid web applications running in multiple browsers, including Internet Explorer, Mozilla Firefox and Google Chrome.

Rapise supports the following Java AWT Controls:

Image Control Type Matcher Rule Record Learn Comment
Label JavaLabel No Yes
Button JavaButton Yes Yes
Text Field JavaTextField Yes Yes
Text Area JavaTextArea Yes Yes
Checkbox JavaTextBox Yes Yes
Choice JavaChoice No Yes
List JavaList Yes Yes
Scrollbar JavaObject No No
Scroll Pane JavaObject No No
Panel JavaObject No No
Canvas JavaObject No No
Menu Bar JavaObject No No
Popup Menu JavaObject No No
Empty Border, Line Border, Matte Border, Titled Border, Etched Border, Bevel Border, Soft Bevel Border, Compound Border JavaObject No No

Rich Internet Applications using Java Swing

Rapise can test web applications using a combination of HTML and embedded Java Swing applets within a single application using a single test script. Rapise can test such hybrid web applications running in multiple browsers, including Internet Explorer, Mozilla Firefox and Google Chrome.

Rapise supports the following Java Swing Controls:

Image Control Type Matcher Rule Record Learn Comment
Label JavaSwingLabel No Yes
Button JavaSwingButton Yes Yes
Toggle Button JavaSwingToggleButton Yes Yes
Check Box JavaSwingCheckBox Yes Yes
Radio Button JavaSwingRadioButton Yes Yes
Button Group JavaObject No No
Combo Box JavaSwingComboBox No Yes
List JavaSwingList Yes Yes
Text Field JavaSwingTextField Yes Yes
Text Area JavaSwingTextArea Yes Yes
Scroll Bar JavaObject No No
Slider JavaSwingSlider No Yes
Progress Bar JavaSwingProgressBar No Yes
Formatted Field JavaObject No No
Password Field JavaSwingPasswordField Yes Yes
Spinner JavaObject No No
Separator JavaObject No No
Text Pane JavaObject No No
Editor Pane JavaObject No No
Tree JavaSwingTree Yes Yes
Table JavaSwingTable Yes Yes
Menu Bar JavaSwingMenuBar Yes Yes
Menu JavaSwingMenu Yes Yes
Menu Item JavaSwingMenuItem Yes Yes
Menu Item / Check Box JavaSwingMenuItemCheckBox Yes Yes
Menu Item / Radio Button JavaSwingMenuItemRadioButton Yes Yes
Popup Menu JavaObject No No
Panel JavaObject No No
Tabbed Pane JavaObject No No
Split Pane JavaObject No No
Pane JavaObject No No
Tool Bar JavaObject No No
Desktop Pane JavaObject No No
Internal Frame JavaObject No No
Layered Pane JavaObject No No
Dialog JavaObject No No
Frame JavaObject No No
Color Chooser JavaObject No No
File Chooser JavaObject No No
Option Pane JavaObject No No

Testing Java Applets with Rapise

Java Bridge Installation

In order to use a particular Java Virtual Machine (JVM) with Rapise you need to first install the Java Bridge into it. The installation process consists of several simple steps:

1. Click 'Java Support' link in the Rapise program group

2. Choose the target JVM in the list of available Java machines and press the [Install] button:

3. Verify that the installation is successful

Running the Java Sample

Rapise includes a Java sample. You can open it from the Start Page. Just choose the Java link in Browse Samples section located on the right side of the page.

The Java sample uses the JAVA_HOME environment variable to launch a simple Java application named AUTJAVA. Please make sure that the JAVA_HOME environment variable points to a JVM that has the Java Bridge installed (see previous section: Java Bridge Installation). If this is the first time you have set the JAVA_HOME environment variable then please reboot after adding it, otherwise the sample may not work.

How to Set JAVA_HOME in Windows

Please follow these instructions to set up the JAVA_HOME environment variable in your computer. First find out the installation folder of the Java development kit (JDK) or Java run-time environment (JRE) in your machine. Let's assume it is installed in the folder "C:\Program Files (x86)\Java\jre6".

Troubleshooting

Windows Security

If you are testing Java on Windows Vista or Windows 7 and User Access Control (UAC) is turned ON then you should launch your Java application or Internet Explorer (if you start your Java application from a browser page) as Administrator.

JVM

If Rapise does not work with your Java application then the first thing to check is that JVM you use to launch the application is the same JVM where you installed the Java Bridge, if not either change the JVM or install the JavaBridge into the additional JVM.

Verify the JVM - Rapise Connection using Spy

You can use the Rapise Spy tool to verify the connection between the JVM and Rapise:

Analyze Application

With Spy you can walk along the tree of Java objects in your application.

Save to File

You can save the Spy data for a particular node and all its descendants to a text file.

Reflection Information

You can save reflection information for a java class used to implement a GUI control.


About Inflectra

Our mission to helping our customers - large corporations, small businesses, professional services firms, government agencies and individual developers – with the means to effectively and affordably manage their software development and testing lifecycles, so as to decrease the time to market and increase return on investment.

At Inflectra, we are fully committed to provide our customers with the very best products and customer service. We believe in going the extra mile to ensure that each customer is satisfied with our software products. We have the experience and the commitment to deliver the products customers need to deliver their projects and assure quality every step of the way. (Learn More)

Our Guarantee

We are so confident that you will be fully satisfied with our products that we offer a 30-day, unconditional, money back guarantee! (Learn More)