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 to analyzing test results using quicktest professional?

915


What is TOM in QTP?

2018


Do you know how to connect database? Can you tell me the procedures?

769


Explain the types of object repositorys in qtp?

809


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

1845


What is quick test pro?

848


Give me some real time point of way where exactly we can conduct audits?

1709


How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric

1888


Can launch two instances of qtp on the same machine?

785


in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?

6778


How do I get the QTP scripts result in xml format by using vb script function?

2027


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

806


What is the purpose of loading qtp add-ins?

854


What test cases can you automate using QTP?

872


How to find the path of folder in which the test is saved in qtp?

762