Configuring the Java environment for testing

You must configure JREs for testing Java only when the application under test is 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

  1. Click Configure > Enable Environments for Testing in Test UI.
  2. Click the Java Environments tab.

    You can use this tab to add and edit JRE configurations.

  3. 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:
      1. Click the Search... button.

        The Search for Java Environments dialog is displayed.

      2. 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.
    • Perform the following steps to add a new JRE by using the Add method:
      1. Click the Add button to add a new environment manually.

        The Add Java Environment dialog is displayed.

      2. 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.

      3. Click the Add button.

        The JRE is displayed in the Java Environments list.

  4. 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.

  5. 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.

  6. 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.

What to do next

You can start recording tests for the application under test.