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


Please Help Members By Posting Answers For Below Questions

What are metrics and matrix?

1361


how to test load test and block box testing an a web based application pls give ans briefly

1352


Describe synchronization point.

573


What is object spy in quicktest professional?

615


What are the major/ important methods, functions in QTP we use realtime testing

2259






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

1871


Problem with XML checkpoint in QTP ?

3495


In qtp is it possible to check broken links of a page?

576


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

1861


What is test object model in quicktest professional?

619


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

1562


How does quicktest professional (qtp) identifies the object in the application?

578


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1680


How to test fly out menu in qtp?

515


What is a quick test professional?

621