Micro Focus QTP (UFT) Forums
How to quit running process of QTP? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to quit running process of QTP? (/Thread-How-to-quit-running-process-of-QTP)



How to quit running process of QTP? - svanmitha - 09-22-2010

Hi,
Please let me know about how to stop the execution of qtp and exit from application.
I have used Browser("EaZy REcruitment_2").Stop and Browser("EaZy REcruitment_2").close properties. Those properties close the application and again continue from the first step.

If anyone know about this please provide to me.


RE: How to quit running process of QTP? - PrabhatN - 09-22-2010

Hi,

You can try the following piece of code at the point where you want the QTP Test run to be stopped.

Code:
Set qtpApp = CreateObject("QuickTest.Application")
qtpApp.Test.Stop


Let me know if it helps!!!


RE: How to quit running process of QTP? - supputuri - 09-22-2010

Hi,

You can close the application using the
Browser("EaZy REcruitment_2").close
and in order to stop the execution of QTP you can use
Code:
ExitTest