How to add Dynamic Objects to Object repository?

Answers were Sorted based on User's Feedback



How to add Dynamic Objects to Object repository?..

Answer / nanda

Hi Ravi,

We don't have SetROProperty method.

Is This Answer Correct ?    6 Yes 2 No

How to add Dynamic Objects to Object repository?..

Answer / 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

How to add Dynamic Objects to Object repository?..

Answer / devi

using SetTo we can only assign dynamic value to the other
object captured from a dynamic object.

Is This Answer Correct ?    3 Yes 2 No

How to add Dynamic Objects to Object repository?..

Answer / dinesh1433

We can add dynamic object in OR using object prameterization,(affter adding the dynamic object using object spy then change the object property name to class and assign the class name. after adding if it matches more than one object then use index property)

Is This Answer Correct ?    0 Yes 0 No

How to add Dynamic Objects to Object repository?..

Answer / ravichandranath

Setroproperty.
using this we can add dynamic objects in object repository
bye
ravichandranath

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More QTP Interview Questions

While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?

0 Answers  


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1 Answers  


How can i open 5 multiple browser at once through QTP VB script and i want to login with 5 different credentials i already tried with this code but its entering credentials only for first browser and am using datatable to parameterize

2 Answers  


Explain Checking XML....

1 Answers   Crea,


give one example where you have used regular expression?

6 Answers   Ordain Solutions,






Hi,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript Thanks in advance

3 Answers  


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

0 Answers  


How many types of OBJECTS are there in QTP?

8 Answers   Intel, Inter Globe Technologies,


what is frame work?

2 Answers   Wipro,


regular expression

2 Answers   Wipro,


We have 10 rows of records in data table, but we have to run 4th, 5th and 6th rows only. How can we handle this scenario in QTP?

5 Answers   Accenture, Banca Sella, Polaris,


How did you resolve conflicts present in Object Repository?

0 Answers  


Categories