How to add Dynamic Objects to Object repository?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / ravichandranath
Setroproperty.
using this we can add dynamic objects in object repository
bye
ravichandranath
Is This Answer Correct ? | 1 Yes | 10 No |
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?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
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
Explain Checking XML....
give one example where you have used regular expression?
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
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?
How many types of OBJECTS are there in QTP?
8 Answers Intel, Inter Globe Technologies,
what is frame work?
regular expression
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?