Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59391

Micro Focus Application Automation Tools - Test is missing host name and execution fails to start

    Details

    • Similar Issues:

      Description

      Jenkins Console output shows the Test execution does not start. The HostName is <blank>. The plug-in option for where to run the test has "Planned Host Name" and Quality Center is populated with a Host list value.

       

      I've also attached a screenshot of the Jenkins ALM plugin settings.

       

      5.8 has an issue and doesn't start the test run. Please see the log below. 

      [RouteOne Medium] $ "d:\Jenkins\.jenkins\workspace\Agile Enablement Factories\Sales And Product\1-2 Dealer Sales\RouteOne Medium\HpToolsLauncher.exe" -paramfile props13092019181324010.txt
      "Started..."
      Timeout is set to: 7200
      Run mode is set to: RUN_PLANNED_HOST
      ============================================================================
      Starting test set execution
      Test set name: Demo, Test set id: 1423
      Number of tests in set: 5
      Test 1: [1]R1_AKL_CAL_BUS_LSE will run on host: <missing in log but is assigned in QC>
      Test 2: [1]R1_AKL_CAL_BUS_RET will run on host:
      Test 3: [1]R1_AKL_CAL_IND_LSE will run on host:
      Test 4: [1]R1_AKL_CAL_IND_RET will run on host:
      Test 5: [1]R1_AKL_CA_BUS_ERR will run on host:
      Problem while running TestSet: Exception from HRESULT: 0x80040459
      "Scheduler started at:13/09/2019 18:13:28
      -------------------------------------------------------------------------------------------------------
      Test set: Demo, finished at 13/09/2019 18:13:29
      ================================================
      Run status: Job succeeded, total tests: 5, succeeded: 0, failures: 0, errors: 0, warnings: 0
      Unknown:
      Unknown:
      Unknown:
      Unknown:
      Unknown:
      ================================================

        Attachments

          Activity

          Hide
          narcisamgalan Maria Narcisa Galan added a comment -

          Hi! Last week we released a new version of our plugin. Please install it and tell us if the problem persists   . 

          Here is the link from where you can download it: 

          Directly  or through Jenkins using the instructions here.

          Show
          narcisamgalan Maria Narcisa Galan added a comment - Hi! Last week we released a new version of our plugin. Please install it and tell us if the problem persists   .  Here is the link from where you can download it:  Directly   or through Jenkins using the instructions  here.
          Hide
          jimsears Jim Sears added a comment -

          The new plug-in works better than before, I can run a test as long as I don't care which PC is running the test and I populate "RunMode" with a Host List. 

          Unfortunately, I'm having issue with the Planned Host Name. If I set the value to "Run Remotely" and leave the "Run Mode" value blank then I get an exception. (I leave it blank because I have the Planned HostName on the Test in the QC Test Set already defined.)

          Goal:

          Run a test on a specific HostName. I need the test to run on a specific PC because the test deletes temp files and reboots the PC. (Maintenance process).

           

          Works but doesn't satisfy my goal:

          I can run on a remote PC only if the HostList and the Plugin RunMode value matches. In this case, I set the PlannedHostName and RunMode to TAF_LAB_UFT. Test doesn't actually run on the PC I need it to.

           

          How do I get the test to run on the Planned Host Name in QC instead of the HostName listed in Plugin RunMode? I've tried all three RunMode options.

          1) RunMode = "Run Remotely" and leaving the HostName list blank but I get this error. 

          2) RunMode = "Run Locally" won't work bc the test only runs on the Slave and that isn't the correct PC.

          3) RunMode = "Run on Planned Host" and leave it blank and I get the same error. If I put in the Host List then the test runs on any available Host.

          I have no way of controlling the PC (Host) where the test is expected to execute.
          Started by user
          Jim Sears
          Building on master in workspace d:\Jenkins\.jenkins\workspace\MF QC Test Set Execution\Automation CoE\TAF LAB PC Maintenance-Reboot
          [TAF LAB PC Maintenance-Reboot] $ "d:\Jenkins\.jenkins\workspace\MF QC Test Set Execution\Automation CoE\TAF LAB PC Maintenance-Reboot\HpToolsLauncher.exe" -paramfile props16092019112733046.txt
          "Started..."
          Timeout is set to: 180
          Run mode is set to: RUN_REMOTE
          Unable to retrieve test set folder: Node not found.
          ============================================================================
          Starting test set execution
          Test set name: LabMaintenance-Reboot, Test set id: 210
          Test 1: [1]RebootLabPC will run on host:
          Test 2: [2]RebootLabPC will run on host:
          Test 3: [3]RebootLabPC will run on host:
          Test 4: [4]RebootLabPC will run on host:
          Test 5: [5]RebootLabPC will run on host:
          Test 6: [6]RebootLabPC will run on host:
          Test 7: [7]RebootLabPC will run on host:
          Problem while running TestSet: Exception from HRESULT: 0x80040459
          "Scheduler started at:16/09/2019 11:27:38
          -------------------------------------------------------------------------------------------------------

          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)
          [WS-CLEANUP] Deleting project workspace...
          [WS-CLEANUP] Deferred wipeout is used...
          [WS-CLEANUP] done
          Triggering a new build of
          MF QC Test Set Execution » Automation CoE » LabMainteance QA EmailReport
          Finished: SUCCESS
           

          Show
          jimsears Jim Sears added a comment - The new plug-in works better than before, I can run a test as long as I don't care which PC is running the test and I populate "RunMode" with a Host List.  Unfortunately, I'm having issue with the Planned Host Name. If I set the value to "Run Remotely" and leave the "Run Mode" value blank then I get an exception. (I leave it blank because I have the Planned HostName on the Test in the QC Test Set already defined.) Goal: Run a test on a specific HostName. I need the test to run on a specific PC because the test deletes temp files and reboots the PC. (Maintenance process).   Works but doesn't satisfy my goal: I can run on a remote PC only if the HostList and the Plugin RunMode value matches. In this case, I set the PlannedHostName and RunMode to TAF_LAB_UFT. Test doesn't actually run on the PC I need it to.   How do I get the test to run on the Planned Host Name in QC instead of the HostName listed in Plugin RunMode? I've tried all three RunMode options. 1) RunMode = "Run Remotely" and leaving the HostName list blank but I get this error.  2) RunMode = " Run Locally" won't work bc the test only runs on the Slave and that isn't the correct PC. 3) RunMode = " Run on Planned Host" and leave it blank and I get the same error. If I put in the Host List then the test runs on any available Host. I have no way of controlling the PC (Host) where the test is expected to execute. Started by user Jim Sears Building on master in workspace d:\Jenkins\.jenkins\workspace\MF QC Test Set Execution\Automation CoE\TAF LAB PC Maintenance-Reboot [TAF LAB PC Maintenance-Reboot] $ "d:\Jenkins\.jenkins\workspace\MF QC Test Set Execution\Automation CoE\TAF LAB PC Maintenance-Reboot\HpToolsLauncher.exe" -paramfile props16092019112733046.txt "Started..." Timeout is set to: 180 Run mode is set to: RUN_REMOTE Unable to retrieve test set folder: Node not found. ============================================================================ Starting test set execution Test set name: LabMaintenance-Reboot, Test set id: 210 Test 1: [1] RebootLabPC will run on host: Test 2: [2] RebootLabPC will run on host: Test 3: [3] RebootLabPC will run on host: Test 4: [4] RebootLabPC will run on host: Test 5: [5] RebootLabPC will run on host: Test 6: [6] RebootLabPC will run on host: Test 7: [7] RebootLabPC will run on host: Problem while running TestSet: Exception from HRESULT: 0x80040459 "Scheduler started at:16/09/2019 11:27:38 ------------------------------------------------------------------------------------------------------- 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) [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] done Triggering a new build of MF QC Test Set Execution » Automation CoE » LabMainteance QA EmailReport Finished: SUCCESS  
          Hide
          aslaakso Anda Sorina Laakso added a comment -

          I think you forgot to mention the host where the tests will run. This was the only scenario in which i was able to reproduce this error.

          Show
          aslaakso Anda Sorina Laakso added a comment - I think you forgot to mention the host where the tests will run. This was the only scenario in which i was able to reproduce this error.
          Hide
          aslaakso Anda Sorina Laakso added a comment - - edited

          Hi Jim,

          I have uploaded the fix for the host name issue in dropbox and deleted the previous patch. Please install this new version of the plugin and let me know if the problem got fixed or not.
          Thank you.

          Show
          aslaakso Anda Sorina Laakso added a comment - - edited Hi Jim, I have uploaded the fix for the host name issue in dropbox and deleted the previous patch. Please install this new version of the plugin and let me know if the problem got fixed or not. Thank you.
          Hide
          jimsears Jim Sears added a comment -

          Hi,

          Does the beta release 5.8.7 contain the patch fix? 

          Jim

          Show
          jimsears Jim Sears added a comment - Hi, Does the beta release 5.8.7 contain the patch fix?  Jim
          Hide
          aslaakso Anda Sorina Laakso added a comment -

          No it doesn't. The fix will be included in the next oficial release.

          Show
          aslaakso Anda Sorina Laakso added a comment - No it doesn't. The fix will be included in the next oficial release.
          Hide
          lambdaway Minh Tran added a comment -

          Hi,

          I am on releases 5.9 and 5.9.1 beta and still having the same issue. Could you please ensure the fix will be included in release 5.10?

          Minh

          Show
          lambdaway Minh Tran added a comment - Hi, I am on releases 5.9 and 5.9.1 beta and still having the same issue. Could you please ensure the fix will be included in release 5.10? Minh
          Hide
          aslaakso Anda Sorina Laakso added a comment -

          I am working on it. I will let you know when the fix is available.

          Show
          aslaakso Anda Sorina Laakso added a comment - I am working on it. I will let you know when the fix is available.

            People

            • Assignee:
              aslaakso Anda Sorina Laakso
              Reporter:
              jimsears Jim Sears
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: