Posts: 3
Threads: 1
Joined: Aug 2008
Reputation:
0
08-06-2008, 12:29 PM
Hi,
I am using VB script in the QTP. I am a beginner. I need help in knowing the command that is used to move the control to a specified line number. For ex say going to a step 10 lines before the current line or 10 lines after the current line. Please help.
Thanks,
Nataraj.R
Posts: 130
Threads: 0
Joined: Jul 2008
Reputation:
0
08-06-2008, 12:54 PM
Try Ctrl+G to jump to a Specified Line
Posts: 3
Threads: 1
Joined: Aug 2008
Reputation:
0
08-06-2008, 01:07 PM
Thanks for your reply Surya. I am writing the script in the expert view and i want to know if there is any command that can be written manually so that when i run the script, after a particular step the control passes on to the specified nth step and if it proceeds from there. I dont know what i am telling is either correct or if it is possible.
Posts: 130
Threads: 0
Joined: Jul 2008
Reputation:
0
08-06-2008, 02:29 PM
Use Goto.
See the QTP help
Posts: 15
Threads: 0
Joined: May 2008
Reputation:
0
08-06-2008, 04:14 PM
Hi Surya , What Nataraj is telling that, while running the script can we jump from one line and ask QTP to goto a particular line? Like "goto" statement in "C" language. Unfortunately there is no facillity in Vbscrpt and QTP. Instead of it you can use If else statement and Select statement