ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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?
 Question Submitted By :: Subhan.qa
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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?
Answer
# 1
Hi,
 you can load Object repository by using this code.
 Dim app
 set app.test.settings.resources=objectrepository path
 here specify the path of OR .
 
Is This Answer Correct ?    0 Yes 2 No
Priya
 
  Re: 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?
Answer
# 2
Set  objnew = CreateObject("QuickTest.Application")
objnew.Test.Settings.Resources.ObjectrepositoryPath =Object 
repositorypath
Set objnew= Nothing
 
Is This Answer Correct ?    0 Yes 1 No
Nilanjan Islam
 
 
 
  Re: 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?
Answer
# 3
Hi,
 
 dim app
 set app=createobject("quicktest.application")
  app.test.settings.resources=objrepositorypath
 
Is This Answer Correct ?    0 Yes 2 No
Sree
 
  Re: 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?
Answer
# 4
Hi,
 use this code
Call LoadRepository("repository path")
 
Is This Answer Correct ?    0 Yes 1 No
Shankar
 
  Re: 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?
Answer
# 5
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
Gaytri
 
  Re: 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?
Answer
# 6
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
Biman Roy
 
  Re: 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?
Answer
# 7
nice answers 
god bless u guys
 
Is This Answer Correct ?    0 Yes 1 No
Basha
 
  Re: 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?
Answer
# 8
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
Gaytri
 
  Re: 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?
Answer
# 9
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
Capriguy
 
  Re: 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?
Answer
# 10
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 ?    0 Yes 0 No
Nanda
 
  Re: 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?
Answer
# 11
Hi,

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

Set RepObj=CreateObject(Mercury.ObjectRepositoryUtil)

RepObj.Load "C:\Rep1.tsr"
 
Is This Answer Correct ?    0 Yes 0 No
Priyanka
 
  Re: 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?
Answer
# 12
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 ?    0 Yes 0 No
Kalyan
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
where did you automate in your project?(please tell me example senarios)  2
How to use library files in QTP? how we can call these files in to script? Wipro3
hi is there any chance to change encoding the password  3
Hi,EXCEL SHEET AND DATA TABLE . BOTH ARE SAME OR NOT?  3
An object is created, i dont know the methods available for that object, i want to find methods available for that object and use the required method. How i can do this??? HCL4
what type automation is fofollowed in the project? Satyam1
how do you do database testing in qtp NIIT4
I have 5 no.of Action in my Test. Out off which i should make 3rd action as my start-up action. How should i make it? IBM6
how can we group that these test cases only should be automated and in which order you execute that test cases? BSL2
how you have used object libraries? plzzzzz do answer  1
What does VBS file contain?  1
for example one window is there, the window contains how many edit box's i want script? i know the script but that is not exact answer.... The script is like this .......... set a=description.creation() a("Native class")="WinEdit" b=window("Flight Reservation").childobject(a).count msgbox b  2
Browser("Las Vegas Hotels - Las").Page("Vegas Hotels - Hotels").Link("Luxor") ......here Luxor is a hotel and this is recognised as a link. I have many hotels like Luxor, Palms etc which are all displayed as link...How do I parametrize this by using webtable functions??? ASAP HP1
how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. But when i am calling the function with the keyword CALL <Function Name>. its not working out. can any one give me a clue how to call the external functions. with example.  3
How the automated tests in org Maintec1
i need the licence key for QTP V9.5 can anyone help me on getting this?  89
WHAT IS THE SIZE OF OBJECT REPOSITORY USING IN YOUR COMPANY? Can any body tell me answer of this quation........ Ness-Technologies10
How do u fetch data from a database ?  2
Hi, I want to write the script for a webpage. But i didn't added the properties of the objects to the object repository. Without adding the object properties to the object repository, how to write the script. When i am writing the script, Let us say i typed as Browser (""). after selecting ".", if the object is added to the object repository it will display atomatically. But in my case it is not as i didn't added the object properties. How to proceed further in the above mentioned case to write the script manually. Pls let me know if you didn't understand the question.  3
what is the diff between Procedure and function iFlex3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com