Configuring Java environments for testing

You need to 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. This provides path, run options, and other information that Rational® Functional Tester needs to access and use your JREs.

About this task

To add and configure your JREs:

Procedure

  1. Click Configure > Enable Environments for Testing in Rational® Functional Tester.
  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:
    • Search method. 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 box appears.

      2. Choose one of the search options and 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.
    • Add method. 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 box appears.

      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 information in the Detailed Information list.
    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 these fields, see the Java Environments tab of the Enable Environments dialog box.

  5. Choose the JRE that you want to set as the default environment to use for the playback. Select the JRE in the list, and then click the Set as Default button.

    That JRE will then become the default, and will be indicated in parentheses. You can change the default any time by coming back to 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.

  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.