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

Please let know the scripts for counting number of repeated letters in the word. Note repeated letter should not be count agian. Ex: If "Hello" is my word... l is coming twice.. it should count once and print... secong 'l' should not count again..

1 Answers  


I want to check in the data table(Globalsheet) column exist or not through script .If column not exist only proceeded to next step Pls tell me how to proceeded?

5 Answers   Syntel,


difference Between Call Run action and copy of action?

3 Answers   Quest,


Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

0 Answers   Hewitt,


I have 2 Environment variable which holds int. I called into my test and addedup. but output is concatenating the values instead of Sum. Ex. Envi("a")= 10, Envi("b") = 20, c= Envi("a")+ Envi("b"). msgbox c ( Ans.1020). How to overcome this pblm? I used the add fn also..

3 Answers   BirlaSoft,






explain how to write vb script in qtp?when will you write own script?

0 Answers   FirstApex,


Is it possible to split an action? How?

0 Answers  


What ate the Technologies supported by QTP?

0 Answers  


how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?

8 Answers   INCA, Infosys, Logix, SLK Software, Symphony, Wipro,


what is the code in QTP to take screen shot?

4 Answers   TCS,


1) after inserting the check point how to change the expected value that was captured while inserting the check point

2 Answers   TCS,


what is the difference between DP and keyword driven framework?

1 Answers  


Categories