The Java GUI Analyzer - JavaGUIRipper

 

The JavaGUIRipper analyzes a Java based application and understands its GUI structure. The Java application, which the tester is trying to analyze, is called the Application Under Test, henceforth called the AUT. The JavaGUIRipper analyzes the application and outputs the GUI Structure file. In addition to this, JavaGUIRipper allows tester to identify the windows that are missed during analysis and connect it to appropriate component in its parent window.

 

Analyzing the AUT

The project that is being used for the testing must be selected; that is, the user can click on any artifact in the project window.  From the main interface, select Generate à GUI Structure.  Once invoked from the maininterface the JavaGUIRipper allows tester to analyze the AUT. This can be done by just clicking on Ripp App button, as shown in fig1.

 

 

Fig 1. Analyzing the AUT

 

Spy for missing windows

At the end of preliminary analysis the GUI structure will be displayed to tester on clicking Save as shown in Fig 2. Once the preliminary analysis is done, one can then refine/complete the analysis by identifying the missing windows missed during the initial analysis and adding those to appropriate places.

 

 

Fig 2. Spying for missing windows

 

This can be done by following, the steps given below:

ü     Click on Spy : This will launch the AUT again in its initial state. The example shown here is java application called TextTrix.

 

 

 

                                                                   

 

Fig 3. Spy for Window

 

In the TextTrix example the initial analysis missed “Find and replace window”. In order to capture this window the tester can click the Find and replace menu to launch the Find and replace window. In order to Ripp this window tester can right click, this will dispose all the AUT windows.

 

 

 

Fig 4. Missing window

 

 

 

 

Fig. 5. Linking Missing windows

 

ü     The GUI Structure can be finalized by clicking on Save. This will refresh the GUI structure display.

 

 

Fig 6. Finalize/Save GUI Structure.

 

ü     File-Return will take the control back to the MainInterface.

 

Note: The current JavaGUIRipper does not allow the tester to capture the Print and Page Setup window. The future version of this Ripper will provide this facility along with the manual editing capability to GUI Structure.

TextTrix is a sample Java Application picked from http://texttrix.sourceforge.net/

 

Top of page

GUITAR – GUI Testing Framework

Perform Tests on the AUT