for a test in QTP i had choose the object repository as
shared.after completion of some days i want to conduct the
same test again,now the question is HOW TO LOAD THE OBJECT
REPOSITORY. is it possible by descriptive programming.could
any one tell me how many ways we load it and what is the
process?

Answers were Sorted based on User's Feedback



for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / nanda

Guys...if u r using 9.2 or Above...

repositoriescollection.Add <"Repositoy path\rep.tsr">

check this. it will load specified Object Repository
during run time.

If any queries...

nanda.dreddy@gmail.com

Is This Answer Correct ?    3 Yes 0 No

for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / capriguy

Dim qtApp 'As Application
Set qtApp = CreateObject("QuickTest.Application")
Set qtRepositories =
qtApp.Test.Actions("Action1").ObjectRepositories

qtRepositories.Add "C:\Documents and
Settings\n\Desktop\arun.tsr", 1

it will work 101% :)

Is This Answer Correct ?    2 Yes 0 No

for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / priyanka

Hi,

you can give a try to the following code...

Set RepObj=CreateObject(Mercury.ObjectRepositoryUtil)

RepObj.Load "C:\Rep1.tsr"

Is This Answer Correct ?    2 Yes 0 No

for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / kalyan

we can use repositoriescollection.add "pathof the rep.tsr"

I am sure it will work.

Any doubts mail to-----------------

mskalyan.smile@gmail.com

Is This Answer Correct ?    1 Yes 0 No

for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / gaytri

Hello Everybody,

I am not able to open the object repository using this
syntax, I am getting error "Type mismatch".

please provide me an example by taking any path of the
object repository.

Thanks in advance,
Gaytri

Is This Answer Correct ?    0 Yes 0 No

for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / biman roy

Hi Gaytri,

This code is perfact--

1. Recodr the Loging scenario of Flight Reservation
2. Save the OR in a place
3 Then Delete the OR
The write the code
Set objnew = CreateObject("QuickTest.Application")
objnew.Test.Settings.Resources.ObjectrepositoryPath
="D:\Documents and Settings\bimanr\My
Documents\Bim_QTP\Test-OR-withshared.tsr"
Set objnew= Nothing


SystemUtil.Run "D:\Program Files\Mercury
Interactive\QuickTest
Professional\samples\flight\app\flight4a.exe","","D:\Program
Files\Mercury Interactive\QuickTest
Professional\samples\flight\app\","open"
Dialog("Login").WinEdit("Agent Name:").Set "biman"
Dialog("Login").WinEdit
("Password:").SetSecure "4694dfafd6fdee359968e66ecfe222e271e
5a424"
Dialog("Login").WinButton("OK").Click

Is This Answer Correct ?    0 Yes 0 No

for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / gaytri

Hello Biman,

I tried to execute the same steps as per mentioned by you
in QTP 9.2 , but on executing I got the error "Object Does
Not support thir property or method" at this line
objnew.Test.Settings.Resources.ObjectrepositoryPath
="D:\Documents and Settings\bimanr\My
Documents\Bim_QTP\Test-OR-withshared.tsr"

SO kindly let me know where exactly the problem is in my
code.

Is This Answer Correct ?    0 Yes 0 No

for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / ramchandra

Hey Guys,

Good answers!

You can use below ways to associate OR at run time

1.Repositoriescollection.Add "OR Path"
2.Repositories.Add(OR Path)

OR

By creating object of QTP application.

Let me know if I am wrong..please post if you have any
other ways to load OR at run time.


Regards,


Ramchandra

Is This Answer Correct ?    0 Yes 0 No

for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / shankar

Hi,
use this code
Call LoadRepository("repository path")

Is This Answer Correct ?    0 Yes 1 No

for a test in QTP i had choose the object repository as shared.after completion of some days i want..

Answer / basha

nice answers
god bless u guys

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

Hi Guys, I am very new to QTP tool , In real time environment how to test the application with this tool, 1. How to load application in QTP tool 2. How to write test script in QTP. 3. In manual testing we test login box (user id , password) how can we test this kind of testing with QTP tool with examples . Please guys put some focus on my questions , real time ecperienced answers would be appreciate, advance thanks ,please guys i am expecting ur answers as soon as posible

1 Answers   IBM, INCA,


how to write the descriptive programming in QTP for loginwindow.without using Step generator,object repository for referecnes

4 Answers   STC,


How you can write contexts to text file in qtp?

0 Answers  


How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..

1 Answers  


How do you find out whether the string is Numeric or Alpha numenric.Suppose..'QTP is an automation testing tool 12345' How should I know it is alphanumeric.Can any one please write the code for this

4 Answers  






I have given u a application.To automate it what are the things will u consider?

4 Answers   Wipro,


Explain the concept of object repository and how qtp recognises objects?

0 Answers  


can we run the scripts of QTP8.2 in QTP7.0?

1 Answers  


Have you worked with QC?

1 Answers   Satyam,


How to export QTP results to an ".xls" file?

1 Answers  


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

0 Answers   Zensar,


For which type of projects the iterative model is not suitable?

0 Answers  


Categories