Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Absent Member.. RakeshM5 Absent Member..
Absent Member..
2526 views

UFT 12 hangs at Test.Stop

Hello,

 

I downloaded UFT 12 recently and found that UFT hangs at Test.Stop line.

 

Dim qtp_obj
Set qtp_obj = CreateObject("Quicktest.Application")

qtp_obj.Test.Stop

Set qtp_obj = Nothing

 

 

0 Likes
7 Replies
Highlighted
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: UFT 12 hangs at Test.Stop

Hello Rakesh,

 

         Did you run that code directly from UFT or in a vbscript file.

 

 

Best Regards.

0 Likes
Absent Member.. RakeshM5 Absent Member..
Absent Member..

Re: UFT 12 hangs at Test.Stop

Thanks vzamoraz for looking into this.

 

I tried both options i.e. directly in UFT 12 directly and calling from  a library file called using loadfunctionlibrary

 

This works well in QTP 11.

 

Thanks

0 Likes
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: UFT 12 hangs at Test.Stop

I see Rakesh,

 

    This is Automation object model code. This code can by executed only directly in a vbscript (executing the .vbs file manually), it should not by launched on UFT or executed from a function library called from UFT, since the purpose of this code is create the instance of UFT and control it by the code.

   

Regards.

Tags (4)
0 Likes
Absent Member.. RakeshM5 Absent Member..
Absent Member..

Re: UFT 12 hangs at Test.Stop

I understand it is AOM Code. Since it worked for QTP 11, I was hoping it will work for UFT 12. Do you think using this code in UFT 12 is creating a deadlock situation?

 

It is something I would have preferred not to use but I used as a work around for a different issue we ran into. We have a framework that involves calling nested library files i.e. first file loads the second file, second file loads third. To stop the test on error, we used 'ExitTest'. When 'ExitTest' is executed in the third library file, the test does not stop. Execution continues uninterrupted. 'ExitTest' works well when executed in the first and second library file.

 

I saw some references on googlign for this issue but I haven't seen a fix. 

0 Likes
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: UFT 12 hangs at Test.Stop

I would recommend you to open a ticket for that exit issue on third library, since  run AOM directly from UFT is expected to show issues.

 

Regards.

0 Likes
Absent Member.. RakeshM5 Absent Member..
Absent Member..

Re: UFT 12 hangs at Test.Stop

OK. Thanks again

0 Likes
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: UFT 12 hangs at Test.Stop

You're welcome Rakesh,

 

Regards.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.