Micro Focus QTP (UFT) Forums
Pause through script is not working - 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: Pause through script is not working (/Thread-Pause-through-script-is-not-working)



Pause through script is not working - kp.naravi - 06-11-2008

Hi,

I am not able to pause the QTP running script using the following code,

qtApp.Test.Pause


On executing this script, script is stopped rather than getting paused.

Do i need to pass any other arguments or is there any method i can Pause QTP.


Regards,
KP


RE: Pause through script is not working - namitarayudu - 06-11-2008

Hi,

To make it possible to pause a run session from an automation script, you must set the WaitOnReturn argument of the Test.Run method to False.


Thanks,
Namita


RE: Pause through script is not working - kp.naravi - 06-12-2008

Hi Namita,

I have used this code line
qtApp.Test.Run False

But still pause is not working. Am i need to pass any other argument to this method? or could you please correct the above mentioned code if i am wrong.



Thanks,
KP