Posts: 4
Threads: 2
Joined: Aug 2013
Reputation:
0
08-19-2013, 05:12 PM
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
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
08-22-2013, 07:05 AM
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.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 4
Threads: 2
Joined: Aug 2013
Reputation:
0
08-22-2013, 11:43 AM
Thanks for the information Basanth !!!