Re: UFT 12 hangs at Test.Stop (379 Views)
Reply
Occasional Advisor
RakeshM5
Posts: 10
Registered: ‎05-31-2013
Message 1 of 8 (449 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

 

 

Please use plain text.
HP Expert
vzamoraz
Posts: 502
Registered: ‎04-12-2012
Message 2 of 8 (379 Views)

Re: UFT 12 hangs at Test.Stop

Hello Rakesh,

 

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

 

 

Best Regards.

Please use plain text.
Occasional Advisor
RakeshM5
Posts: 10
Registered: ‎05-31-2013
Message 3 of 8 (374 Views)

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

Please use plain text.
HP Expert
vzamoraz
Posts: 502
Registered: ‎04-12-2012
Message 4 of 8 (368 Views)

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.

Please use plain text.
Occasional Advisor
RakeshM5
Posts: 10
Registered: ‎05-31-2013
Message 5 of 8 (359 Views)

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. 

Please use plain text.
HP Expert
vzamoraz
Posts: 502
Registered: ‎04-12-2012
Message 6 of 8 (350 Views)

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.

Please use plain text.
Occasional Advisor
RakeshM5
Posts: 10
Registered: ‎05-31-2013
Message 7 of 8 (347 Views)

Re: UFT 12 hangs at Test.Stop

OK. Thanks again

Please use plain text.
HP Expert
vzamoraz
Posts: 502
Registered: ‎04-12-2012
Message 8 of 8 (342 Views)

Re: UFT 12 hangs at Test.Stop

You're welcome Rakesh,

 

Regards.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation