JavaVMCount Property

Applies to TestComplete 15.0, last modified on November 17, 2021

Description

The JavaVMCount property specifies the number of Java virtual machines loaded into the specified application process.

This property is only added to Java application processes.

Declaration

TestObj.JavaVMCount

Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following objects:

View Mode

To view this property in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Property Value

The number of Java virtual machines loaded into the specified application process.

Typically, the property value is 1. In some rare cases it may be 0, which means that the Java virtual machine was unloaded from the process, but TestComplete has not yet updated its internal data and removed the property from the process object.

Remarks

The property is available only if the Java Application Support plugin is installed.

If a Java application is launched with the -verbose or -verbose:class command-line argument, the JavaVMCount returns an error. For more information about the issue and workarounds, see Troubleshooting Java Applications.

See Also

JavaVMVersion Property (Process and Browser Objects)
Testing Java Applications

Highlight search results