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

how do you invoke the application through QTP?

1 Answers  


How to create runtime property for an object?

0 Answers  


How do you copy a value from a cell in an msexcel sheet saved on the desktop into QTP's datatable when the co-ordinates of cell are given?

2 Answers   Oracle,


what are the drawbacks for record and payback in qtp

3 Answers  


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

0 Answers  






what is the process to follow between writing the test cases & then atomating it?

1 Answers  


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

0 Answers  


How to retrieve the property of an object in QTP?

5 Answers  


Did QTP prove efficient for your project? Yes or No, explain?

0 Answers  


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

1 Answers   Crea,


The hybrid framework can be implemented for any application. Is it true?

0 Answers  


How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

0 Answers  


Categories