How to load a object repository in QTP during runtime?
Answers were Sorted based on User's Feedback
Answer / nath .t
we can add object repository at runtime
Two ways are there u can add
1. when u write below syntax in Action1
if write in Action1 it will automatically add the Object
Respository to the Action1
(i.e Edit Menu-->Action-->Action Properties-->Associate
Repository tab) at runtime.
no need to add the object repository before running.
2. Add the object repository at runtime by using AOM
(Automated Object Model)
Set qtAppn = CreateObject("QuickTest.Application")
qtAppn.Visible = True
qtApp.Open "E:\Test\Test2", False, False
Set qtObjRes = qtApp.Test.Actions
qtObjRes.Add "E:\OR\ObjRes.tsr", 1
The above example Add the Object Repository(ObjRes.tsr) to
the "Login" action in Test2.
Here also no need to add the object repository in Test2.
|Is This Answer Correct ?||67 Yes||5 No|
Answer / guru
StrPath = "D:\FrameWork\Repository\GoogleHomePage.tsr"
|Is This Answer Correct ?||25 Yes||2 No|
How to execute a WinRunner Script in QTP?
I'm facing this problem while automating my application..its a web based apps.. In my application there are few webtables are displaying in the page.In the different cells there are links and action buttons.Problem is there is link in different web tables corresponding to one name.Hence the properties of the objects(say a link) are same except the x,y co ordinate of the object.So my script is not able to distinguish between the two links present in different cells of web tables with same name.Kindly help on this..
How can we log a defect in Testdirector from Q.T.P ?
What is the use of environment variables?
How to Identify broken links in QTP
Which property do you use to retrieve or assign data into a cell in a Data Table object?
can a Function return more than one value..??? if so please give me the code for that.
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini
which is the easiest way you can send the QTP test results to Client if he want to see the screenshots when the results are failed?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
How to capture screen shots when an error occurs?