Can any one give me some basic VB script used in QTP ?As i
am new in QTP.Give sample VB script used in QTP? PLZ

Answers were Sorted based on User's Feedback



Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script use..

Answer / dhana

first of all u need to add Objects in u r Application on
which u want to perform Operations to Object repository.

For ex:u need to Add Browser,Page,Frame,Webedit
(Username,Password),webbutton objects to objectRepository
then once u write "Browser" in Expert view,QTP
automatically vl popup the Browsername so as for page and
for Subsequent objects also...


for ex:

Browser("Browsername").Page("Pagename").frame
("Framename").webedit("Username").set 12345

Browser("Browsername").Page("Pagename").frame
("Framename").webedit("Password").setsecure asdahsxcasjd2362

Browser("Browsername").Page("Pagename").frame
("Framename").webbutton("Login").click

Is This Answer Correct ?    4 Yes 1 No

Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script use..

Answer / mike w.

An EXCELLENT resource is http://www.w3schools.com/VBscript/default.asp

Is This Answer Correct ?    1 Yes 0 No

Can any one give me some basic VB script used in QTP ?As i am new in QTP.Give sample VB script use..

Answer / dhanapal

Dim - For variable/object declaration
set - assigning value to the variable/object/property.
Ubound - upper bound value of an array.
Lbound - lower bound value of an array.
len(var_name) - to find the length of the variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

If the object property is changing very frequently, what was your approach?

2 Answers  


How many types of Parameters are available in QTP?

1 Answers  


Difference between test object and run time object?

0 Answers  


If i entered 2 columns and 4 rows inputs in DDT Like Mango fruit, Banana Fruit, Brinjal Veget, Carrot Veget.. . My Q is How to get the 2nd column value for corresponding 1 column input in 3rd row ie, ( i need to get "veget" in messge box @ run time

5 Answers   CTS,


can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

0 Answers  






hi, In A Table there are some columns and dynamic rows and in each row in first column there is a link with name. upon clicking on that link it will show some details. write the vbscript to check that link without descriptive programming?

2 Answers   HealthAsyst,


Hi. GetRoProperty and OUTPUT Value Both are same purpose or not? plz explain in deatil with example?

5 Answers  


Please explain about unicode compatibility in QTP. how we can able to use it. Please help me

1 Answers  


What is test fusion report?

2 Answers   CIL,


Test cases for Traffic Signals

4 Answers   AppLabs,


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

0 Answers   BirlaSoft,


How to map Test cases to the script? Please do anwser urgently?Thanks

3 Answers  


Categories