Unable to run tests in a Mac operating system

When you install the latest version of HCL DevOps Test UI (Test UI) on a Mac operating system that has Java 8 or older version installed, and then run a test, the test run fails with an error.

Cause

The test run fails and displays 'Exception in thread "main" java.lang.UnsupportedClassVersionError' because the bundled Java 17 is not enabled automatically.

Resolution

You must perform the following steps:
  1. Open Test UI on the Mac operating system.
  2. Right-click a project and select the Properties option in the UI Test perspective.

    The Properties dialog is displayed.

  3. Select the Java Build Path option in the left navigation panel, and then click the Libraries tab.

    The JRE System Library dialog is displayed.

  4. Select one of the following options:
    • Java SE-17 in Execution environment
    • JRE (17.x.x) in Alternate JRE
  5. Click Finish.
  6. Click Apply, and then click Apply and Close.
  7. Restart Test UI.