Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control Statements
#1
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi Team,
(1)how can go to any particular line number\statement in QTP? As we use GO TO in C language.
I want to go on certain line\statement in run time. I want to add many Lables in code

(2) how can I use SWITCH case.

Regards
Piyush
Reply
#2
Solved: 11 Years, 3 Months, 2 Weeks ago
Hi Piyush,

1) Goto is not supported.. Still you can use Do loop or Do while loop upto a certain extent.
2) Switch case is almost same as If Condition.

Please refer QTP help for both the points and see if that helps.

Regards,
Ankesh
Reply
#3
Solved: 11 Years, 3 Months, 2 Weeks ago
Thanks Ankesh.
Much appreciated. I am using IF for Both the questions.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to create a Reusable code for Repetitive Reporter.ReportEvent Statements notknownspammer 0 2,098 10-02-2014, 12:25 AM
Last Post: notknownspammer
  Does QTP/UFT support "Microsoft.Windows.Control" (one type of wpf control)? abhishikth12221 2 3,983 01-22-2014, 06:24 PM
Last Post: abhishikth12221
  Where can I get statements for changing qtp settings. anil2u 4 6,196 05-21-2012, 12:12 AM
Last Post: ravi.gajul
  wait statements sunny rao 3 3,360 08-20-2008, 07:04 PM
Last Post: RaghavendraRaichur

Forum Jump:


Users browsing this thread: 1 Guest(s)