how do you remove object repository at runtime and load
object repository and verify it
Answer Posted / uday
This you can do in two ways:
Use "RepositoriesCollection" utility object and use below
methods as per your needs.
RepositoriesCollection.remove(pathOfSharedOR)
RepositoriesCollection.add(pathOfSharedOR)
RepositoriesCollection.add(pathOfSharedOR)
Another way is using AOM.
A bit of coding is needed, so i am putting high level
overview. I am just posting a pseudo code here:
create a QTPObject
Get associaterepositories by some method like
"AssociatedRepositories"
set repositories=QTPObject.AssociatedRepositories
Once you have repositories you can use below methods like
repositories.remove (path)
repositories.add(path)
repositories.find(path)
I hope that helps.
Thanks,
Uday
http://qtpftvideos.blogspot.com/
Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
What are metrics and matrix?
how to test load test and block box testing an a web based application pls give ans briefly
Describe synchronization point.
What is object spy in quicktest professional?
What are the major/ important methods, functions in QTP we use realtime testing
hi i am working with vbwindow on qtp.first i am openning qtp whenever open qtp my application not open that time generated error like "Runtime error 0" and fatal error:automation error how to solve this problem pls tell me
Problem with XML checkpoint in QTP ?
In qtp is it possible to check broken links of a page?
Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also
What is test object model in quicktest professional?
whenever U using QTP,Test Director, Why we using separate Bug tracking tool?
How does quicktest professional (qtp) identifies the object in the application?
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
How to test fly out menu in qtp?
What is a quick test professional?