09-14-2009, 04:25 PM
Hi,
To associate Object repository dynamically use the following code.
Try this for attaching Object repository at run time.
To associate Object repository dynamically use the following code.
Try this for attaching Object repository at run time.
Code:
Dim qtpApp
Set qtpApp = CreateObject("QuickTest.Application")
Dim qtpRepositories
Set qtpRepositories = qtApp.Test.Actions("Main").ObjectRepositories
qtpRepositories.Add("C:\ts.tsr")