Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to add object repositories to qtp through scripting
11-11-2011, 04:34 PM
Post: #1
how to add object repositories to qtp through scripting

i tried to add OR to test via scripting it is not coming in the test
Find all posts by this user
Quote this message in a reply
11-11-2011, 05:33 PM
Post: #2
RE: how to add object repositories to qtp through scripting
Dim qtApp

Set qtApp = CreateObject("QuickTest.Application")

qtApp.Test.Actions(1).ObjectRepositories.Add "C:\Repository1.tsr"
Find all posts by this user
Quote this message in a reply
11-11-2011, 07:51 PM
Post: #3
RE: how to add object repositories to qtp through scripting
Hi,

Plz include below statements in ur QTP test.

strRepPath = "c:\vIns\OR.tsr" (path of OR)
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add(strRepPath)

~vIns~
Find all posts by this user
Quote this message in a reply
11-18-2011, 08:25 AM
Post: #4
RE: how to add object repositories to qtp through scripting
(11-11-2011 07:51 PM)vIns Wrote:  Hi,

Plz include below statements in ur QTP test.

strRepPath = "c:\vIns\OR.tsr" (path of OR)
RepositoriesCollection.RemoveAll()
RepositoriesCollection.Add(strRepPath)

thanks for your reply
Find all posts by this user
Quote this message in a reply
Post Reply 


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

Forum Jump:


User(s) browsing this thread: 1 Guest(s)