What is the function for loading a repository in QTP

Showing Answers 1 - 3 of 3 Answers

madhava

  • Mar 17th, 2006
 

No function is available in QTP to load Object repository. when you open test ,associated Repository will be loaded automatically.

  Was this answer useful?  Yes

Thulasi ram

  • Mar 19th, 2006
 

But you have a function in win runner to load a gui file like "gui_load".

  Was this answer useful?  Yes

Konka Ravi Krishna

  • Mar 24th, 2006
 

hi,

You have button called SetAsDefault in Test > Settings > Resources. Create the shared repository and click on the button when ever you open new script it will load shared repository automatically. If you want to load dynamically means just copy paste this code and pass the path of your .tsr file.

******************************************************
testsai("C:\Documents and Settings\125301\Desktop\Default.tsr")
 
Dim a
Function testsai(a)
 Dim App 'As Application
 Set App = CreateObject("QuickTest.Application")
 App.Test.Settings.Resources.ObjectRepositoryPath = a
End Function

******************************************************

Regards,
Ravi Konka

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions