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

we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?

1632


How will you handle java tree in qtp?

625


How can i check items sorted or not in a weblist ? Give me the script for this...

1578


Explain the types of object repository?

553


How will you check that your test cases covered all the requirements?

566






descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

1806


How to build scripts that access data from external sources?

1606


I am Facing Issues with learing datepicker 1)when i first learn datepicker as current system date . 2)if i wanna runtime datepicker value it gives error

2350


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1610


What are the challenges you faced during you entire life automation ?

1006


banking domain description for software tester for interview

3469


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

511


what is ODC and GDC?

7349


breef description of batch testing ?

1707


How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)

1526