-
Bug
-
Resolution: Fixed
-
Critical
-
Windows 7 / Windows 10
Jenkins LTS 2.164.1
Micro Focus Application Automation Tools version 5.7 (issue does not occur in 5.6.2 or 5.5)
UFT version 14.03 / 14.50 / 14.51
ALM 12.55
We are using the Micro Focus plugin to run a single UFT test in an ALM test set. This worked fine in previous versions of the plugin, but not in version 5.7.
A popup on the agent (WerFault.exe, child of HpToolsLauncher.exe) shows:
HpToolsLauncher has stopped working
A problem caused the program to stop working correctly.
Please close the program.
[ -> Close the program]
The Jenkins build log shows:
Building remotely on Interactive in workspace C:\Jenkins\Agents\Interactive\workspace\ALM Test
[ALM Test] $ "C:\Jenkins\Agents\Interactive\workspace\ALM Test\HpToolsLauncher.exe" -paramfile props17032019164142557.txt
"Started..."
Timeout is set to: -1
Run mode is set to: RUN_LOCALUnhandled Exception: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
{{ at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)}}
{{ at HpToolsLauncher.AlmTestSetsRunner.Run()}}
{{ at HpToolsLauncher.Launcher.RunTests(IAssetRunner runner, String resultsFile)}}
{{ at HpToolsLauncher.Launcher.Run()}}
{{ at HpToolsLauncher.Program.Main(String[] args)}}
Finished: SUCCESS
The final line (Finished: SUCCESS) is only shown after closing the popup.
Aborting the test instead of closing the popup works:
Building remotely on Interactive in workspace C:\Jenkins\Agents\Interactive\workspace\ALM Test
[ALM Test] $ "C:\Jenkins\Agents\Interactive\workspace\ALM Test\HpToolsLauncher.exe" -paramfile props22032019185836817.txt
"Started..."
Timeout is set to: -1
Run mode is set to: RUN_LOCALUnhandled Exception: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
{{ at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)}}
{{ at HpToolsLauncher.AlmTestSetsRunner.Run()}}
{{ at HpToolsLauncher.Launcher.RunTests(IAssetRunner runner, String resultsFile)}}
{{ at HpToolsLauncher.Launcher.Run()}}
{{ at HpToolsLauncher.Program.Main(String[] args)}}
[ALM Test] $ "C:\Jenkins\Agents\Interactive\workspace\ALM Test\HpToolsAborter.exe" props22032019185836817.txt
============================================================================
Aborting testing tool related processes
Trying to terminate UFTRemoteAgent...Terminated
Operation was aborted by user.
Build step 'Execute Micro Focus functional tests from Micro Focus ALM' changed build result to ABORTED
Finished: ABORTED
I've also tried the following:
- Running with a timeout (the timeout is displayed in output instead of -1, but still crashes. Presumably the timeout only applies when it runs the test.)
- Specify a test set instead of a single test instance (no change - still crashes)
When we downgrade the plugin to version 5.6.2 the job successfully runs the test.