Unified Functional Testing (formerly QTP) News and Support Forum
Showing results for 
Search instead for 
Do you mean 

UFT 12 hangs at Test.Stop

Occasional Advisor

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

 

 

7 REPLIES
HPE Expert

Re: UFT 12 hangs at Test.Stop

Hello Rakesh,

 

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

 

 

Best Regards.

Occasional Advisor

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

HPE Expert

Re: UFT 12 hangs at Test.Stop

[ Edited ]

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.

Occasional Advisor

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. 

HPE Expert

Re: UFT 12 hangs at Test.Stop

[ Edited ]

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.

Occasional Advisor

Re: UFT 12 hangs at Test.Stop

OK. Thanks again

Highlighted
HPE Expert

Re: UFT 12 hangs at Test.Stop

You're welcome Rakesh,

 

Regards.