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

How many types of run modes are there in qtp?

577


Suppose I want fail that check point? How can you do that?

593


Which functionalities of QTP used in banking project?

1911


Describe how Smart Identification is used

1689


What are the automation metrice in your project?

1705






Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1573


what is the latest version of QTP? Main difference between 9.2 and 10 version

1536


Who uses qtp tool?

568


what type of values given to objects. EX::Set oBrowser=Description.Create oBrowser(“micclass”).Value=”Browser”

1480


How many add-ins comes by default with quicktest professional?

545


How to check feasibility of the appliction?in automation testing?

1465


Explain about datafile/verification of date file when file is not available in local system?

2216


Give me detailed theritical explanation about keyword driven, hybrid framework, environment variables, hybrid frame work

1434


Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation

1577


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1611