Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Coninue" statement in QTP
#1
Solved: 11 Years, 3 Months, 3 Weeks ago Toungue 
Do we have a continue statement in QTP/UFT? If yes, how to use it in VB Script?
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
There is no Continue statement in VBScript, and so QTP does not support continue statement as well.

The only way to really simulate continue is to just nest all of your code in a bunch of nested If-Then blocks. Very ugly, but logically the same.
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Unless you are talking about Error trapping. In that case

Code:
On Error resume next

This will cause your code to continue on the next line when an error is encountered.

To reset your error trapping

Code:
On error goto 0
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Caze,

Continues running the timer from the time it stopped (without resetting it).

Syntax:
Code:
MercuryTimers.Timer(TimerName).Continue


Regards,
Venkat.Batchu
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  On Error Statement in QTP Charanpreet 1 7,375 04-15-2011, 10:48 AM
Last Post: Jay
  Executing statement and commiting statement via qtp unbeliever 6 20,488 01-07-2010, 07:11 PM
Last Post: unbeliever

Forum Jump:


Users browsing this thread: 1 Guest(s)