MicroFocus / ADM-FT-ToolsLauncher

Other
12 stars 8 forks source link

FTToolsLauncher may crash if almTimeout is set to 0 when running ALM tests #70

Closed soleverxu closed 2 years ago

soleverxu commented 2 years ago

Tool FTToolsLauncher 1.0.23.2025 (v1.0 beta rev7)

Describe the bug The FTToolsLauncher tool may crash if almTimeout is set to 0 when running ALM tests.

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: Current test set is null.
   at HpToolsLauncher.AlmTestSetsRunner.SetTestResults(ITSTest& currentTest, IExecutionStatus executionStatus, ITestSet targetTestSet, TestRunResults activeTestDesc, TestSuiteRunResults runDesc, String testPath, String abortFilename)
   at HpToolsLauncher.AlmTestSetsRunner.RunTestSet(String tsFolderName, String tsName, String testParameters, Double timeout, QcRunMode runMode, String runHost, Boolean isFilterSelected, String filterByName, List`1 filterByStatuses, TestStorageType testStorageType)
   at HpToolsLauncher.AlmTestSetsRunner.Run()
   at HpToolsLauncher.Launcher.Run()
   at HpToolsLauncher.Program.Main(String[] args)

To Reproduce Steps to reproduce the behavior:

  1. Create a parameter file with ALM test settings, set almTimeout to zero (0).
  2. Run FTToolsLauncher with the above parameter file.
  3. FTToolsLauncher tool may crash.

Expected behavior If timeout is set to zero or a very small amount of seconds, the FTToolsLauncher shall not crash and a meaningful message shall be printed. The test itself shall be started and run normally, and the timeout error can be printed.

OS and testing tools (please complete the following information):

soleverxu commented 2 years ago

Fixed in v1.0 beta (rev.9), FTToolsLauncher v1.0.29.221.