AutomatedQA: Award-winning tools for software testing and quality assurance

Home » Products » TestComplete » Testing Java Applications

TestComplete for Java

Automated Testing of Java Applications

TestComplete lets you test Java applications that use the Swing, AWT, SWT or WFC libraries. These applications must be created with a development tool that supports one of the following Java virtual machines:

Sun JDK (or JRE) version 1.1.8 - 1.6.0. TestComplete also supports 64-bit JRE 1.6 applications.
MSVM - Build 3309 or later
BEA JRockit 5.0

For example, this can be Microsoft Visual J++ 1.1 or later, Borland JBuilder 3.0 or later, Sun Forte 1.0 or later.

Java applications can be tested in both black-box and white-box modes. When you start using TestComplete to automate your Java applications testing, you can access the application’s controls as well as internal objects, properties and methods without any changes in the application.

The way you access and work with objects of your Java application depends on whether or not these objects are visual.

Available visual objects of Java applications as well as properties, fields, methods and events of these objects are displayed in the Object Browser panel. To access visual objects of Java applications, TestComplete provides the SwingObject, AWTObject, SWTObject and WFCObject methods. The method to use is determined by the library that is compiled within the Java application. All of these methods allow you to address the objects by their name, or by the object’s class name, caption or index.
To access a non-visual object, you need to find a property, field or method of another object (visual or non-visual) that would return a reference to that object. You can find this property, field or method by exploring your application in the Object Browser. Non-visual objects that can be obtained in application code through static fields, properties or methods are currently not available in TestComplete.

TestComplete appends specific properties that provide scripting access to array elements for each scripting object that correspond to an array.

In addition, TestComplete provides full-scale support for major Java Swing controls, including JComboBox, JList, JTree and many others. It can recognize Java controls during recording and playback, and work with them via special program objects. These objects extend the “native” functionality of Java controls, which is also visible to TestComplete, with a number of supplementary properties and methods:

These extended methods and properties let you perform a vast amount of user actions over controls, for example, select table cells, click list items, expand and collapse tree items, and a lot more.

With the help of TestComplete’s industry first language independent scripting technology, you can construct (or record) test scripts using the language of your choice. For those building Java applications, this means you will not be forced into using or learning a proprietary scripting language - your scripts can be written using a Java-like scripting language known as JScript.

 
For more information on TestComplete and other Quality Assurance products from AutomatedQA, write to us at sales@automatedqa.com.

 
Copyright © 1999-2008, AutomatedQA, Corp. All Rights Reserved.
Home | Legal | About | Contact | Site Map | Print