Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need script to pause the test
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
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
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Sad Batch Test Script Help nidhitaneja 0 2,604 02-09-2014, 10:34 PM
Last Post: nidhitaneja
  how to add test to test set using vb script ? dasappa 4 17,264 08-15-2012, 09:59 PM
Last Post: sunnystrikes
  how to handle errors while running test batch script sureshkumar 0 2,128 11-11-2011, 04:38 PM
Last Post: sureshkumar
Rolleyes How to pause QTP script using DotNet Factory nistalaramesh 3 5,218 06-23-2011, 02:59 PM
Last Post: Saket
Exclamation Pause script with code JRDew 6 13,465 03-08-2011, 09:46 PM
Last Post: tdevick

Forum Jump:


Users browsing this thread: 1 Guest(s)