Micro Focus QTP (UFT) Forums
Perform some functions whenever QTP Stop button is pressed - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Perform some functions whenever QTP Stop button is pressed (/Thread-Perform-some-functions-whenever-QTP-Stop-button-is-pressed)



Perform some functions whenever QTP Stop button is pressed - smartkarthi - 08-19-2013

Hi,

I want to perform some process kill operations whenever user click the Stop button in QTP. How can i achieve that?

User may want to stop the script execution at any point of time by clicking the Stop button. On Stopping i have to perform a function call before exiting.

Thanks


RE: Perform some functions whenever QTP Stop button is pressed - basanth27 - 08-22-2013

smartkarthi -
I dont think any tool has a programmatic compatibility for a manual intervention. The stop button is to hard stop your execution immediately. When the interrupt is received, the application knows to just stop from whatever its current state is.

Your action to perform something on manual click of stop button is a contradiction to the functionality of the stop button.

What is possible is, you may build a form on which you can give a stop button whose click should programmatically stop QTP. Then you can call any function you want once the stop has been clicked.


RE: Perform some functions whenever QTP Stop button is pressed - smartkarthi - 08-22-2013

Thanks for the information Basanth !!!