How to load object properties to object repository through
scripting.give one example
Answers were Sorted based on User's Feedback
Answer / vamsi
repositoriescollection.add (payh of the object repository.tsr)
| Is This Answer Correct ? | 9 Yes | 6 No |
Answer / uday
The following is the code:
Set qtApp = CreateObject("QuickTest.Application")
Set qtRepositories =
qtApp.Test.Actions("Action1").ObjectRepositories
qtRepositories.Add "<path of the object repository>"
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / acm
Vamsi and Udaya script is ok with QTP 9.2, but Udaya kumar
scripts wrk with 8.2
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramchandra patil
Hi Kalyan n All-
yours, vamsi's and Uday kumars ans is correct...
uday kumar gave answer is correct he is using AOM...you can try
guys let me know if I am wrong with valid reason and answer.
Thanks,
Ramchandra
9699851282
| Is This Answer Correct ? | 0 Yes | 0 No |
Who mark the Vamsi answer as wrong. If u dont know the
answer just keep quite. It is Perfect answer. Remaining
answers are not correct.
This concept wil be called as dynamic handling of OR.
Here we can add the repositories in runtime through script.
And we can remove OR at runtime.
If any doubts mail me
mskalyan.smile@gmail.com
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / uday kumar _anem
Use the Automation Object Model to specify the path to a
Shared Object Repository:
Dim App 'As Application
Set App = CreateObject("QuickTest.Application")
App.Test.Settings.Resources.ObjectRepositoryPath = ""
http://hpsqtp.blogspot.com/2008/08/how-to-programmatically-load-shared.html
| Is This Answer Correct ? | 2 Yes | 6 No |
Answer / pradeep
Goto Object Repository Manager and select any object which
will show an panel at right side with object properties.If
you will click on "+" symbol, it will show more properties.
| Is This Answer Correct ? | 0 Yes | 11 No |
What are the Latest Feature are added In QTP 9.2?
in qtp wha t is synchronisatin pt,what is the maximam time out
Plz Explain AUTOMATION REFERENCE MODEL?
what is keyword driven framework in qtp.
Where are the snapshots stored?
How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If
hello all i need some good sites or blogs which give info abt vb script with examples n real time scenarios.just like tutorials as i m new to qtp n vbscripting. its urgenttt
Using QTP checkpoint, where do you store your expected Properties of the object which later compares with the actual properties of the object???
How to Import data from a ".xls" file to Data table during Runtime.
how to test use the quality control .how to verify the image verification
There is a name "AJAY" how do u count no.of. "A" in that name ?
What is the Difference between copy to action and call to action?