Posts: 7
Threads: 1
Joined: May 2012
Reputation:
0
05-17-2012, 02:34 PM
Hello;
I'm struggling to find a solution to my problem since several days, could you please help me? I start using QTP just from 3 months.
I need to do the following.
(I'm in execution mode)
1- Detect that the user clicked on 'Stop' button.
2- Call a function.
NB: It's ok for step 2, but for the trigger event (step one) I don't know how to configure it.
If you have an other solution (not necessary the recovery scenario) it's ok for me too.
Thank you very much for your help
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
05-21-2012, 09:34 AM
Hi,
U can simply handle this in ur code. Write a code to click on stop button and then call a function. If i am wrong then please elaborate ur requirement.
Regards,
Sankalp
Posts: 7
Threads: 1
Joined: May 2012
Reputation:
0
05-21-2012, 02:47 PM
Hello Sankalp;
Thank you for your response.
I think that I didn't explain well my issue.
The click on the stop button is not an event that I want to raise in my code but it's an event that I want to handle.
The scenario is the following
1- The user click on the Stop button (don't know when)
2- The code must detect this (and not do this) then call a function
Hope it's more clear now.
Thank you again for your supprt!
Posts: 52
Threads: 7
Joined: Mar 2012
Reputation:
0
05-21-2012, 03:40 PM
from what i understand, your problem can be solved if you block the keyboard and mouse input events all over...!! that way user would not be able to click any where on his own... ? please let me know if i too did not understand the problem correctly.
Posts: 7
Threads: 1
Joined: May 2012
Reputation:
0
05-21-2012, 03:50 PM
No I don't want to forbidden the user from clicking on this button, I need just to detect this event when he do this. Thanks again
Posts: 52
Threads: 7
Joined: Mar 2012
Reputation:
0
05-21-2012, 06:22 PM
(This post was last modified: 05-21-2012, 06:24 PM by falvi.)
well for this case then you can really go for recovery scenario and select object state, identify the object, select it's property which you want to have as trigger event and try if that works out for you?
Posts: 7
Threads: 1
Joined: May 2012
Reputation:
0
05-21-2012, 07:17 PM
This is what I aimed to do first, but was not able to select object in QTP it self :-(
Posts: 52
Threads: 7
Joined: Mar 2012
Reputation:
0
05-23-2012, 11:38 AM
please correct me if i'm wrong...
you are aiming to capture the QTP's Stop Execution button?