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                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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 0 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 ?    0 Yes 0 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 ?    0 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 ?    0 Yes 0 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
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
How to create frame work for qtp?  1
take one example and write vbscript on one web application in qtp? explian descriptive programe with one example? IBM2
How do u insert an object during runtime in qtp?  2
In Manual testing , can u prpare bug report in TD? TCS1
hi friends i have 4 yrs exp in testing and 2 yrsexp in QTP.currently aim working in mnc in north as a permanent employer .iam looking for job in south is there any openings plz let me know my mail id is bjr@aol.in its very urjent  4
Is there anyway to have QTP go into a website and map out every object before I actually record any tests? I basically want to map out a website with all the objects and build a complete repository. The reason is because I'm running into issues with hierarcical objects. for example: Browser("ABC company- Home").Page("ABC company - Home").Link ("About Us").Click Browser("ABC company - Page 2").Page("ABC company - Page 2").Link("About Us").Click Both these links ("objects" and I use that term loosely as I'm trained mostly in OO programming) go to the same place but but the object heirarchies (pages) are different. I want a repository that will find any possible link on any possible page without having to manually record it. Is there a way to do this?  1
Hi Everybody, Can anybody please tell me the how to display the result of the QTP in the notepad text file rather than in the QTP result window. Suppose this is my simple script:WHich will open the notepad file and enter some text and then will change the font then will calculate how much time has been taken.Now, in this script i want to display the result in notepad file. Dim s Dim starttimer,endtimer,timeit s="uyetuywqtywqte" SystemUtil.Run "notepad","","Y:\","" Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp Window("Notepad").Dialog("Save As").WinEdit("File name:").Set "test1" Window("Notepad").Dialog("Save As").WinEdit("File name:").Type micReturn Window("Notepad_3").Type s Window("Notepad_3").WinEditor("Edit").Type micCtrlDwn + "s" + micCtrlUp starttimer=timer Window("Notepad_3").WinMenu("Menu").Select "Format;Font..." Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Type "cou" + micDwn Window("Notepad_3").Dialog("Font").WinComboBox ("Font:").Select "Courier" Window("Notepad_3").Dialog("Font").WinEdit ("Font:").Set "Courier" Window("Notepad_3").Dialog("Font").WinEdit("Font:").Type micReturn endtimer=timer timeit=endtimer-starttimer print(timeit) Please also tell me where the function for the text file result will be declared and where it should be called. Thanks, Gaytri  2
Suppose u write test case in Excel sheet . how u open that test case in Test Director? Ordain-Solutions3
When we use 'ERR' object to handle the exceptions in the script, do we need to include any statement in the beginning of the script..?? DST-Global-Solutions2
How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..  1
I have the following Doubts Please clarify me with examples? 1.Could QTP cover entire application? or part of the application? 2.Shall we rewrite(modify) the Manual testcase to automate? 3.How can I execute my scripts through client mechine which is not having QTP installation 4.Few objects are not being identified by QTP afeter one month. what could be the reason for this (I am using trail version of 15 days) Livetek2
What are the abbreviations for tsr and mtr? Ordain-Solutions12
How to access values from Unix OS and how to write..  1
how to re-install QTP 9.0 trial version.  8
What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance. Polaris5
Please any on explain usage of "on error resume next","On error goto 0" with sample code....Thankyou......... when a tester is asked to execute 100 scripts in a short time..(the server will be down in another 10 min)..how he has to run those scripts? Datamatics2
what is qtp automation framework, what is the purpose of the framework and which folders included in this framework pls tell me with brief description PSI-Data-Systems2
in qtp how we work with out put values and what is the process?  4
How to make "TEST Batches" in manual testing . How it is possible plz explin in detail?  1
What r the features of QTP9.2,other than QTP8.0 What r the extre features of QTP9.2.  1
 
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