Configuring the Java environment for testing
You must configure JREs for testing Java only when the application under test is either Internet Explorer or a Java-based application that requires a Java distinct from the Java which is bundled with the product. The configured Java provides path, run options, and other information that HCL DevOps Test UI (Test UI) needs to access and use your JREs.
Procedure
- Click Configure> Enable Environments for Testing in Test UI.
-
Click the Java Environments tab.
You can use this tab to add and edit JRE configurations.
-
Add your JRE(s) by using one of the following methods:
- Perform the following steps to add a new JRE by using the Search
method:
- Click the Search... button.
The Search for Java Environments dialog is displayed.
- Choose one of the search options, and then click the Search
button.Note: You must not use the Search All Drives option to find JREs on Linux® or UNIX® systems. Instead, you must use the Search In option and browse for the JRE. See Enabling Java Environments for information on the search options. The details of the JRE are populated automatically, except for the Run Options field.
- Click the Search... button.
- Perform the following steps to add a new JRE by using the Add
method:
- Click the Add button to add a new environment manually.
The Add Java Environment dialog is displayed.
- Browse and select the JRE that you want to add.
You can select any directory under the root of the JRE, or the root directory itself.
- Click the Add button.
The JRE is displayed in the Java Environments list.
- Click the Add button to add a new environment manually.
- Perform the following steps to add a new JRE by using the Search
method:
-
Look at the detailed information of the selected JRE that is displayed at the
right-hand side.
Note: Whether you use Search or Add, the detailed information on each JRE is filled in, except for the Run Options field. You can edit the details.
For information on fields of the Java Environments dialog, see the related links section.
-
Select the JRE, which you want to set as the default environment for the playback, from
the list, and then click the Set as Default button.
The default JRE that you set is indicated in parentheses. You can change the default JRE any time by using this tab. You can also override the default environment for a specific application, by indicating it in the JRE field in the Application Configuration Tool dialog. For more information, see the related links section.
-
Click OK or Apply to save the changes that
you made.
Note: After a JRE is added, you can edit the information any time by opening this tab and selecting it in the Java Environments list.