Micro Focus QTP (UFT) Forums
need script to pause the test - 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: need script to pause the test (/Thread-need-script-to-pause-the-test)



need script to pause the test - kumsweta - 12-02-2008

if the file which qtp indicates doesnot exist then i need to pause the complet script .. can anybody suggest me the script for that
thx


RE: need script to pause the test - roxer - 12-02-2008

Hi, kumsweta
If you need to wait until tester performed some action (for example, click OK button), you can use code:
Code:
msgbox("File does not exist!!! Click OK to continue")
If you need wait some particular time, you can use code:
Code:
wait 5
where 5 is time to pause in seconds, you can use any number you need.
If you want to stop test execution, use statement:
Code:
ExitTest

Andrey