Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vbscript for adding Object Repository
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
hi frnds

can any 1 giv me the vbscript code for adding object repository from a location

E.g
i have saved OR in "c:\...."location n i want to add that OR through vbscript code

i have tried
RepositoriesCollection.Add "C:\demo\GOR.tsr"

bt its not workingSad
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

the statement you have tried is correct. if you want to check that, set a breakpoint after the statement and got object repository you wil find objects in repository. still you faced that issue mail to my personal id "ssivakrishna@ntrustinfotech.com"

Regards
Krishdeep
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Use the below code...

Code:
Set App = createobject(QuickTest.Application")
App.test.Action("ExecuteTest").objectRepositories.Add "C:\demo\GOR.tsr"

This will add specified OR to Action 'ExecuteTest'

try this also to add the OR to the test

Code:
Set OR = CreateObject("Mercury.ObjectRepositoryUtil")
OR.Load "C:\demo\GOR.tsr"


Let me know weather this works or not
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi ANKUR,

how to write a script for the custom object? and is there anyway to change custom object to standard object? can u give some sample scripts for this?
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

Can anyone let me know how can i create my own O.R in Excel sheet and then import in QTP at run time.

What Parameters/Columns i have to have in Excel, how many properties should i take. help me Out.

Thanks in Advance
#6
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi Manan,
you should create a new thread for your query, instead of putting your different query in between a thread.

closing this thread.



Possibly Related Threads…
Thread Author Replies Views Last Post
Question adding two conditions into a while statement lotos 4 5,128 11-10-2017, 04:49 AM
Last Post: lotos
  Uft: Adding a property to all ojects into Repository ProTester 0 1,375 06-09-2017, 12:48 AM
Last Post: ProTester
  [UFT 12.52/VBScript] Test object exist, is visible and enabled before take an action sparkwanted 0 3,695 02-07-2017, 12:28 AM
Last Post: sparkwanted
  adding an object to OR seven 1 2,672 02-17-2014, 02:23 PM
Last Post: basanth27
  How to access webtables without adding into Object Repository ramkumarad 7 9,729 12-30-2013, 07:38 PM
Last Post: Sathiya

Forum Jump:


Users browsing this thread: 1 Guest(s)