Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to skip the execution of Script lines in run time
#1
Solved: 11 Years, 4 Months ago
Hi everybody, Could you please help me in understanding of How to skip the execution of Script lines in run time.

for suppose once the if condition is true I want to skip few lines in the script
currentcursor at 100th line
eg:
if (a=10)
Goto line 400
Endif

Please help me.
Thanks,
Azeem
Reply
#2
Solved: 11 Years, 4 Months ago
No Azeem, Goto line is not supported in QTP.

what you can do is, create a function and call the function when your if statement is true.

Reply
#3
Solved: 11 Years, 4 Months ago
Sanket,

I heard that "step over" and "step into" are used. I have tried using them but they do the same thing as run, can u pls tell us the exact difference b/tw the two.
Reply
#4
Solved: 11 Years, 4 Months ago
Hi Rajvanan,

It seems your query is not related to this post & hence request you to open new post/thread.
Reply
#5
Solved: 11 Years, 4 Months ago
Hi,

Actually i heard that thesee commands are used for this purpose only.
To skip the lines while execution.
Pls explain.
Reply
#6
Solved: 11 Years, 4 Months ago
No, you heard it wrong. step over and step into are used while debugging.
Excerpt from QTP help-
Step Into runs only the current step in the active test or function library. If the current step calls another action or a function, the called action or function is displayed in the QuickTest window, and the test or function library pauses at the first line of the called action or function.
Step Over runs only the current step in the active test or function library. If the current step calls another action or a user-defined function, the called action or function is executed in its entirety, but the called action or function script is not displayed in the QuickTest window. The run session then returns to the calling test or function library and pauses at the next line.
refer QTP help for more details on debugging.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 592 11-05-2023, 03:55 PM
Last Post: lravi4u
  How do you Change Run mode mid script? Caleytown 6 7,234 03-25-2021, 08:27 AM
Last Post: RB26578
  Help for instruction to click on Skip button in the warning message vijilesh 0 1,516 09-16-2018, 03:48 PM
Last Post: vijilesh
  QTP not recogonising object during run time Lavanya N 2 3,727 10-28-2015, 12:46 PM
Last Post: vinod123
  Issues while uft script execution Mrutyanjayam 0 1,802 10-03-2015, 01:46 AM
Last Post: Mrutyanjayam

Forum Jump:


Users browsing this thread: 2 Guest(s)