How to add Dynamic Objects to Object repository?

Answer Posted / anu

Try This:

set BrowserDesc= Description.Create()
BrowserDesc("Class Name") = "Browser"

Dim ObjRep = CreateObject("Mercury.ObjectRepositoryUtil")
ObjRep.load "C:\sampleRep.tsr"
ObjRep.AddObject BrowserDesc,Null,"Browser1"
.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

789


How does you test a weblink which is changing dynamically?

782


What is an object repository?

813


Tell me about your project? please help me how to tell about insurance project

1777


What is the descriptive programming?

1767


hi guys, pls tell me for testing institution training hub, hitech city is best or not?

1571


Explain sub procedure of vbscript.

769


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

1620


Can we record using all the modes in a single script? Explanation with example is appreciated

1615


I want to grow as a Automation Engineer,Kindly help me in clearing my interview that what interviewer looks for as a Automation Engineer. I am having three years of experience in testing.

1817


What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?

2042


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

5578


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

1837


write a script to verify the image path(src property) of the images which are in web pages.

1983


How many types of actions are there in quicktest professional (qtp)?

728