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:
- Open Test UI on the Mac operating system.
- Right-click a project and select the Properties
option in the UI Test perspective.
The Properties dialog is displayed.
- Select the Java Build Path option in the left
navigation panel, and then click the Libraries
tab.
The JRE System Library dialog is displayed.
- Select one of the following options:
- Java SE-17 in Execution environment
- JRE (17.x.x) in Alternate JRE
- Click Finish.
- Click Apply, and then click Apply and Close.
- Restart Test UI.