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
How to run a test using quicktest professional (qtp)?
Can any suggest me what is exposure testing?
What is a quick test professional?
How do you create new test sets in td?
What are the different properties of an web object
Where you are storing your script?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
What are the five challenges you faced in QTP?
how to prepared for first for the first interview?
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
How is test case write?
Explain the qtp test phases.
can the activities of test case design be automated?
What is debugging? How you debug your script?
Suggest and Define a solution for an application whose objects are not recognized by UFT?