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   SiteMap shows list of All Categories in this site.
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
How to load a object repository in QTP during runtime?
 Question Submitted By :: Prasanth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to load a object repository in QTP during runtime?
Answer
# 1
we can add object repository at runtime

Two ways are there u can add

1. when u write below syntax in Action1

Syntax: RepositoriesCollection.Add(Path) 
Ex: RepositoriesCollection.Add(E:\OR\ObjRes.tsr) 

if write in Action1 it will automatically add the Object 
Respository to the Action1
(i.e Edit Menu-->Action-->Action Properties-->Associate 
Repository tab) at runtime.

no need to add the object repository before running.

2. Add the object repository at runtime by using AOM
(Automated Object Model)

Ex:
Dim qtAppn 
Dim qtObjRes 

Set qtAppn = CreateObject("QuickTest.Application") 
qtAppn.Launch
qtAppn.Visible = True 
 
qtApp.Open "E:\Test\Test2", False, False 
Set qtObjRes = qtApp.Test.Actions
("Login").ObjectRepositories 
 
qtObjRes.Add "E:\OR\ObjRes.tsr", 1 

The above example Add the Object Repository(ObjRes.tsr) to 
the "Login" action in Test2.

Here also no need to add the object repository in Test2.
 
Is This Answer Correct ?    7 Yes 0 No
Nath .t
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Per-Action Vs Shared repository?  5
Explain the concept of object repository & how QTP recognises objects?  1
In an output value text checkpoint, where does the output value stored by default ? Ordain-Solutions4
Scenario:2 combo boxes.1st combo contains a,b,c,d.2nd combo contains 10..20,20..30,30..40,.Selecting 'a' shld display 10...20,'b' shld display 20..30.. and so on.tell d script? 2.Random testing of 500 test cases in qtp?  1
In a webpage how to check the dynamic links that re changing regularly?( without using regular expressions.) Misys3
Hi Friends ,I want to Know name of the Site for the QTP Help and the Best Book through that I can start the QTP Practice here also whare can I download the QTP Users Guide I search I was Unable .  2
For example one window is there the window contain some of Check boxes but my question is how many check boxes are there particular window? Please solve the problem gi_raju@rediffmail.com ippaliraju@yahoo.co.in  3
How to count the no of objects in XML file(QTP)  1
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME Ordain-Solutions3
What is the difference between Dim And Redim IBM3
How to connect QTP to Testdirector Polaris4
How good are you in writing VBscript code for your application? Can you completely write VBscrit for your project with out using recording mode in QTP? CTS3
I have a Webedit object. some text is entered in that object I want to know the font sixe of that text.How could I do this using QTP? This is a requirement for me. I am happy if any one help on this GE3
What is the difference between Call to Action and Copy Action? Satyam1
In Manual testing , can u prpare bug report in TD? TCS1
What is the difference between functional spec. and Business requirement specification? Infor4
What is error handled other than recovery scenario manager?  2
Hoe we can export TEST RESUALT IN to XL-sheet? IBM1
HI, Based On The Information Below Write A Data Driven test Script Edit Box 1 Should take Value From Num1 Column Edit Box 2 Should take Value From Num2 Column Click On Add Button, Get The Value Of Exp res Column, Get Value From Actual Result Edit Box , Compare Two Values, Write Pass / Fail Value Into Result Column Thanks In Advance... Kavitha Input.Xls Num1 Num2 Exp res Act res Result 10 30 40 40 Pass 50 40 90 90.5 - - - - - - - - - - - - - - - - UHG3
How does Parameterization and Data-Driving relate to each other in QTP?  2
 
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