[JIRA] (JENKINS-57479) HPToolsAborter leaks Autopass licenses when killing process UFT.exe

4 views
Skip to first unread message

johan.klintholm@lemontree.se (JIRA)

unread,
May 15, 2019, 3:55:03 AM5/15/19
to jenkinsc...@googlegroups.com
Johan Klintholm created an issue
 
Jenkins / Bug JENKINS-57479
HPToolsAborter leaks Autopass licenses when killing process UFT.exe
Issue Type: Bug Bug
Assignee: Daniel Gront
Components: hp-application-automation-tools-plugin
Created: 2019-05-15 07:54
Priority: Major Major
Reporter: Johan Klintholm

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

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

daniel.gront@microfocus.com (JIRA)

unread,
May 19, 2019, 1:38:01 AM5/19/19
to jenkinsc...@googlegroups.com

daniel.gront@microfocus.com (JIRA)

unread,
May 19, 2019, 1:38:02 AM5/19/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages