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 the object repository at run time?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to load the object repository at run time?
Answer
# 1
QuickTest Professional 9.0 does not support dynamically 
loading object repositories at runtime. AOM (Automation 
Object Model) statements are not designed to be executed 
from within a test script.

QuickTest Professional 9.0 does allow you to associate and 
load (not at runtime) multiple Object Repository files.

-Atin Srivastava
 
Is This Answer Correct ?    1 Yes 1 No
Atin
 
  Re: How to load the object repository at run time?
Answer
# 2
Use the Automation Object Model to specify the path to a 
Object Repository: 
Dim App 'As Application 
Set App = CreateObject("QuickTest.Application")
App.Test.Settings.Resources.ObjectRepositoryPath 
= "<PathToYourObjectRepositoryFileHere>"
 
Is This Answer Correct ?    1 Yes 1 No
Uday Kumar_anem
 
 
 
  Re: How to load the object repository at run time?
Answer
# 3
To be more simple 
go with this 

RepositoriesCollection.Add " .tsr File path "
 
Is This Answer Correct ?    3 Yes 0 No
Vinod
 
  Re: How to load the object repository at run time?
Answer
# 4
Hi We can call the TSR file in runtime and in 8.2 and 9.0 
also.

How means.. i am giving one function

Public Function UDF_ORUpdate(g_ActName,sv_qtFileName)
    Dim qtApp
    Dim qtRepositories
    Set qtApp = CreateObject("QuickTest.Application") 
    Set qtRepositories = qtApp.Test.Actions
(g_ActName).ObjectRepositories
    qtRepositories.removeall
    qtRepositories.Add sv_qtFileName

End Function
 
Is This Answer Correct ?    1 Yes 3 No
Krishna Reddy
 
  Re: How to load the object repository at run time?
Answer
# 5
hi krishna,

LOADING OBJECT REPOSITY AT RUN TIME U WROTE SMALL FUNCTION
IN THAT U MENTIONED OBJECT  .

CAN YOU PLZ EXPLAIN HOW THAT OBJECT WORK COMPLETELY 

REGARDS
SARI
 
Is This Answer Correct ?    0 Yes 0 No
Sari
 
  Re: How to load the object repository at run time?
Answer
# 6
hi,

One of the new feature of QTP 9.2 is Dynamic Management of OR.

>>ADD - RepositoriesCollection.Add("D/OR/test.tsr")
-- it will add the 'test.tsr' file during the run time

>>FIND - Pos = RepositoriesCollection.Find("D/OR/test.tsr") 
-- it will return a numeric value to the variable 'Pos' this
is nothing but the index value of the specified file

>>MOVETOPOS - RepositoriesCollection.MoveToPos(2,5)
-- here 2 is the current index and 5 is the new index
position. In this case it will move 2nd item to 5th position

>>REMOVE - RepositoriesCollection.Remove(5)
--it removes the 5th object repository file from the OR

>>REMOVEALL - RepositoriesCollection.RemoveAll 
--it removes the full items from OR. Makes object repository
empty

>>COUNT - no = RepositoriesCollection.Count 
--stores the number of repository items to 'no'

>>ITEM - desc = RepositoriesCollection.Item(4)
--returns the path of the 4th object repository file.


Thnx
Sanu
 
Is This Answer Correct ?    2 Yes 0 No
Sanurajps
 
  Re: How to load the object repository at run time?
Answer
# 7
Dim qtApp
    Dim qtRepositories
    Set qtApp = CreateObject("QuickTest.Application") 
    Set qtRepositories = qtApp.Test.Actions
("ActionName").ObjectRepositories
    
qtRepositories.Add "E:\Sandeep_Documents\Sandeep_Working\sha
redRepository.tsr"
 
Is This Answer Correct ?    0 Yes 0 No
Sandeep.v
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
which command u will use to access the application through descriptive programing? Datamatics5
Associated files in QTP?  1
How to import the Test Results in QTP to an Excel sheet Sonata4
What is the scripting language used in QTP?  6
What is Optional step?  3
How to test the mandatory fields in QTP? SoftSolve1
Use of environment variables?  3
what is the purpose of .vbs file? HCL2
how many wayes we do the parameterization?  1
what is input pramater out output pramater ?i want the decrepation..?how to use in QTP? Infinite-Computer-Solutions2
scalability testing comes under in which tool? EpuraTech4
What u say as experience(Interview) "TELL ME ABOUT UR SELf"? As a Fresher(interview) What u Say? ShopRite2
Give me the Example of standard check point and text check point with syntax? IMI-Soft-Engineering2
What are the properties you would use for identifying a browser & page when using descriptive programming ?  2
in howmany ways you perfrom batchtesting Lehman-Brothers5
anyone can explain the following concepts. 1.diff b/w Linear and modular framework 2.diff b/w keyword and hybrid framework  1
How to give Table check points? ssinformatics4
How to identify flash application when the qtp is not identifying the flash application objects.  2
Hi all, what is the latest version of QTP? CTS8
How should i find out whether the cursor is moving horizantally. when tabbing continuously Livetek2
 
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