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

how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

1581


What is object repository in qtp?

559


what are the limitations of smart identification in qtp 9.0

1921


What is keyword driven framework?

616


Which functionalities of QTP used in banking project?

1918






Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution

1664


Where you are storing your script?

631


Your roles and responsibilities and daily tasks? (As automation tester)

2576


1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

985


Explain the features of quick test pro(qtp)?

569


What Folder Structure following in Keyword Driven Frame work?

2278


Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.

2404


In qtp, how you can use xpath to identify objects?

612


hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

3699


what is the hierarchy to use properties in descriptive programming

1496