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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 ?    3 Yes 0 No
Nath .t
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Hello, Can we capture only the labels of the web page in the object repository. If yes, then how. Actually my scenario is: I have to capture all the label of mercury site http://newtours.mercuryinteractive.com/tour/mercurypurchase. php. and want to copy all these labels in the notepad. So,please help me how to do this all. Thanks in advance, Gaytri  3
Hi Suppose u have complex Test scripts which u vl write first and which u vl execute first Symphony1
what is main difference between QTP 8.2 AND QTP 9.0/9.2 HOME PAGE?i mean what are extra thing in QTP 9.0 than in QTP 8.2? Infosys1
What is the extension of script and object repositary files? Maveric6
what are SetToProperty, SetROProperty,GetToproperty scripting?  2
how will check the links in multiple pages at a time  1
difference Between Call Run action and copy of action?  1
how u will describe testing activities?  1
QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop for these tabs.its not proceeding from _1 to _2. How can i use "for loop " Livetek2
what is Unicoad Compatibility ???? HOw does this makes a diffrence from Winrunner.??? GE1
WHO TAKE DECISION TO RELEASE THE BUILD IGT1
How to database testing by manualy?in my db having 100 records when i am retriving the data from db it shows in frent end 30 records how to find bug using QTP?plz Exp realtimers (Chandana) Wipro5
How comfortable are you in VB scripting?  1
How u call functions in QTP Function to calculate the length of characters in a word -  2
How do we run a test from the 3rd row of the datatable in QTP? Leaving the first two rows we need to test AUT from 3rd row to n'th row. Virtusa3
In qtp,how to interact tool & application build? Polaris1
How to find the number the number of Links, Brolken Links in a webpage? Ordain-Solutions2
How many actions we can create with in a test?  2
How to load object properties to object repository through scripting.give one example IBM3
Hi all, what is the latest version of QTP? CTS3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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