How do u insert an object during runtime in qtp?

Answer Posted / ravi

Where do you want to insert object ??

We can create object at runtime using createobject()
function in VBScript.

For ex:
Set con = createobject("ADODB.Connection")

The above statement creates connection object at runtime.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the mandatory properties for a tex boxc (scenario?)

1762


What is action? How many types of actions are there in qtp?

860


Shall we add Local Repository to shared object repository,if yes,how we add

6676


can the activities of test case design be automated?

1659


Explain qtp(quick test professional)?

783


Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

1731


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1597


How to use the object spy in quicktest professional 8.0 version?

765


The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

3028


hi guys we r working in office...we write some scripts..suddenly we have a work(5min only) in out side..what will do now,,,used to system shut down or log off or lock or sleep mode,switch use or hibernate?

1812


Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations

1975


What do you mean by iteration?

883


I want to configure the OR and library files to a particular QTP test during run time. Note: OR and Library files are located in Quality Center. Is it possible in QTP? Anybody having code?

1610


How can get count of list box?

862


Explain how you can find the absolute value of the number in qtp?

858