Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to add object repositories to qtp through scripting
#1
Not Solved
i tried to add OR to test via scripting it is not coming in the test
Reply
#2
Not Solved
Code:
Dim qtApp

Set qtApp = CreateObject("QuickTest.Application")

qtApp.Test.Actions(1).ObjectRepositories.Add "C:\Repository1.tsr"
Reply
#3
Not Solved
Hi,

Plz include below statements in ur QTP test.

Code:
strRepPath = "c:\vIns\OR.tsr"   (path of OR)
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add(strRepPath)
Reply
#4
Not Solved
thanks for your reply
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Browser Independent Scripting in QTP 9.1 Deepak 5 5,865 02-14-2012, 04:59 PM
Last Post: shivu.impu
  sharing objects of Object Repositories satyapani 1 2,555 08-29-2011, 10:46 PM
Last Post: Arul

Forum Jump:


Users browsing this thread: 1 Guest(s)