Requirements for Testing Java Applications

Applies to TestComplete 14.70, last modified on April 22, 2021

This topic describes the requirements that should be met in order for TestComplete to be able to test Java applications properly. If something goes wrong, check the requirements listed in the following sections:

Java Support Plugins

Core Java Plugins

TestComplete support for testing Java applications is provided by the following plugins:

  • Java Application Support

  • Open Applications

  • Desktop Testing

These plugins are installed and enabled automatically. Therefore, you can test most Java applications right out-of-box, without any additional configuration.

You can check to see if these plugins are active by selecting File | Install Extensions from the TestComplete main menu. If one of these plugins is not available, you need to run the TestComplete installation in the Repair mode. For more information about changing installed TestComplete features, see Installing Extensions.

To use these plugins, you must have a license for TestComplete Desktop module.

Plugins for Java Controls Automation

TestComplete also includes a pre-installed plugin for automated testing of Java controls. This plugin provides test objects, methods and properties for automating various operations on Java controls, getting their contents, state and so on.

Note: To use the plugin, you must have a license for TestComplete Desktop module.

Just like core Java support plugins, this plugin is also installed and enabled automatically as part of the TestComplete Desktop module.

Just like core Java support plugins, this plugin is also installed and enabled automatically.

Preparing Java Applications for Testing

If your Java application uses the Java Swing ComboBox, Java Swing List or Java Swing Tree control and the com.sun.java.swing.plaf.windows.WindowsLookAndFeel look and feel, launch your application with the swing.disablevistaanimation command-line parameter set to True, or specify the parameter in the application code. Otherwise, errors may occur when playing back your tests. Here is an example of how you can specify this parameter:

java.exe -Dswing.disablevistaanimation=true -cp MyApp.jar MyApp.Main

Testing Java Applications Running Under Another User Account

To test Java applications that run under a different user account, you need to configure certain COM Security settings on the computer. For details, see Settings for Testing Open Applications in RunAs Mode.

In addition, TestComplete must be launched with administrator privileges.

See Also

Testing Java Applications
Supported Controls
Installing Extensions

Highlight search results