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

HPToolsAborter leaks Autopass licenses when killing process UFT.exe

    XMLWordPrintable

Details

    Description

      Hi,

      When, for any reason, test execution is hung in UFT.exe and the Jenkins plugin determines that the tools need to be terminated, the UFT.exe stands a great chance to be stopped by killing the process abruptly. The code is in HPToolsAborter, function "KillQtpAutomationFromAlm".

      We used to do that as well but when simply killing the process, any Autopass licenses held by it will be lost and not returned until after the timeout period specified on the Autopass server.

      We advise to create an instance of UFT and telling it to "quit" before resorting to exit the process abruptly.

      See example code in VBScript for reference:

       Dim qtApp : Set qtApp = CreateObject("QuickTest.Application")
       Call qtApp.Quit()
       Set qtApp = Nothing

      This will ensure that UFT has been given the possibility to return any license. If the process still lives after that, sure, it need to be killed anyway.

      The same might apply to the other tools as well.

      Thanks and best regards,

      Johan

       

      Attachments

        Activity

          hildaboth Hilda added a comment -

          Please raise a CPE for UFT team in order to investigate the issue.

          hildaboth Hilda added a comment - Please raise a CPE for UFT team in order to investigate the issue.

          People

            aslaakso Anda Sorina Laakso
            jklintholm Johan Klintholm
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: