Unable to test Java applications in Linux and Windows
When you run a functional test for a Java application on a Linux or Windows operating system, the test run fails.
Cause
The configurations.rftcfg file might not have the new Java path appended with /lib or \lib if you migrated from an earlier version of Test UI to 11.0.2.
You can choose either Resolution 1 or 2 to resolve the issue.
Resolution 1
On Windows:
You must ensure that the following path is configured in C:\ProgramData\HCL\DTUI\configuration\configurations.rftcfg:
<JVMList L=".JVMList">
<JVM L=".JVM">
<Name>jdk</Name>
<Path>$R(HKEY_LOCAL_MACHINE\SOFTWARE\HCL\DevOps Test UI\Rational FT JRE)\lib</Path>
<RunCommand>javaw</RunCommand>
<RunOptions></RunOptions>
<version>17</version>
<enabled>false</enabled>
</JVM>
</JVMList>
On Linux:
You must ensure that the following path is configured in /etc/opt/HCL/DTUI/configuration/configurations.rftcfg:
<JVMList L=".JVMList">
<JVM L=".JVM">
<Name>jdk</Name>
<Path>$(Rational FT JRE)/lib</Path>
<RunCommand>java</RunCommand>
<RunOptions></RunOptions>
<version>0</version>
<enabled>false</enabled>
</JVM>
</JVMList>
Resolution 2
Perform the following actions:
- Go to Functional Test perspective. in the
- Click the Java Environments tab.
- Add /lib for Linux or \lib for Windows at the end of the existing path in the Path field.
- Click Apply.
- Verify that the path is updated in the configurations.rftcfg file.