how to associate object repository during runtime in qtp



how to associate object repository during runtime in qtp..

Answer / yadagiri

Dim qtpApp
Set qtpApp = CreateObject("QuickTest.Application")
Dim qtpRepositories
Set qtpRepositories = qtApp.Test.Actions("Main").ObjectRepositories
qtpRepositories.Add("D: s.tsr")

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

who is the best faculty in Hyderabad for QTP?

47 Answers   IBM,


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop (i.e. I first connect to remote desktop from my machine in order to run the application). I am able to record the script successfully with QTP running on my machine and application running on remote. However, when i run the recorded script, system fails to run it and indicates me that it does not identify the object. Is it possible to record and play while QTP and AUT are not on same machine?

7 Answers   ABC,


How to do Batch run in qtp? provide the steps?

5 Answers  


HOW do we find a datasheet when there are 4 datasheets in data table.this question was asked by covansys interview.

5 Answers   CTS,


What are the main features we have to compulsory test by using qtp in an web based application

1 Answers  






Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.

0 Answers  


how can i call an external action,which is not added external action of an action?

2 Answers   Ordain Solutions,


There is a table with 4 columns and 10 rows, how to write the script to display the first column records using qtp? can anybody help me with script?

6 Answers   Oracle,


CAN WE USE 'BVA' AND 'ECP' IN AUTOMATION?

3 Answers   Polaris,


Create an Excel file and pass the values from Flat File? (for ex:data1.txt,data2.txt )

2 Answers   FIS,


How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)

5 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

4 Answers  


Categories