Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

I want to learn Advanced QTP, suggest me the best faculty in Hyderabad

12 Answers  


Hi I have created a table in the MS access database. I want to access the table in this database through QTP. The code is given below. The code is not working.The following error is displayed "Data source name not found and no default driver specified". Any one can correct the code. Thanks in advance. Dim dbconnection, rs Dim ca, sname Set dbconnection = createobject("ADODB.Connection") Set rs = createobject("ADODB.Recordset") dbconnection.open "DSN = MS Access Database","", "" rs.open "select * from Research", dbconnection rs.movefirst If rs.EOF <> True AND rs.BOF<> True then ca = rs("order_number") sname = rs("customer_number") rs.movenext msgbox ca msgbox sname End If

1 Answers  


How to send the qtp results file by email (Lotus notes).

1 Answers   TCS,


Why VB scripts are used in QTP and TSL in Winrunner, is there any advantage of using VB Scripts

2 Answers  


Write the regular expression code, it accepts the alpha, numeric and special symbol and the first character should be the Alphabet. Tell me the answer

3 Answers   IBM,


What are the framework folders?

1 Answers  


In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?

0 Answers  


I've some problem in Descriptive programming plz help me. I've written in a click event code in Functional library when I run this flight reservation program It is not run. How to I write multiple click event in functional library. My program is this. I have associate an action with functional library. Public Function ClickButton(byval ApplicationName, byval WindowName, byval ObjectName, byref Comments) If Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Exist Then Dialog("text:=" &WindowName).Activate Dialog("text:=" &WindowName).WinButton("text:=" &ObjectName).Click Elseif Window("text:="&ApplicationName).WinButton("text:=" &ObjectName).Exist Then Window("text:=" &ApplicationName).Activate Window("text:=" &ApplicationName).WinButton("text:=" &ObjectName).Click End if End Function

2 Answers   Amdocs,


explain keyword driven framework?

2 Answers   Mindlance,


hi guys, could you please prepare script for given format ? 1,1,2,3,5,8,13,21,...etc use vbscript for this...?

2 Answers   Value Labs,


What is meant by Step Generator in Qtp How is it used? pls gimme in detail

7 Answers   AppLabs,


When The Low Level Recording is Used in QTP

17 Answers  


Categories