Can any one brief some detail on how the shared and action
object repository utilized/implemented in a real time
project. I already know how to make shared object repositor
by saving OR as .tsr extension..I wanted the actual concept
of implementation...couple of live examples will be highly
appreciated.
Thanks
Answer / Anjali Vargila
A shared object repository (OR) and action object repository are essential components of test automation using QTP (QuickTest Professional).nnShared Object Repository (SOR) contains reusable test objects (UI elements such as buttons, text boxes, etc.) that can be accessed across multiple tests.nAction Object Repository (AOR) holds predefined actions to perform on these test objects like click, fill in form, or check value.nnDuring the implementation, developers create test objects and their corresponding action methods in the shared object repository and action object repository. These repositories are then used by testers for test script creation and execution.nnHere is an example of a simple shared object repository:nnTestObject_LoginPage = {n username: { type: 'Edit', name: 'username' },n password: { type: 'Edit', name: 'password' },n loginButton: { type: 'Button', name: 'loginButton' }n}nnAnd an example of a simple action object repository:nnAction_LoginPage = {n FillUsername: function(username) {n this.RepositoryObjects['TestObject_LoginPage'].username.SetValue(username);n },n FillPassword: function(password) {n this.RepositoryObjects['TestObject_LoginPage'].password.SetValue(password);n },n ClickLoginButton: function() {n this.RepositoryObjects['TestObject_LoginPage'].loginButton.Click();n }n}n
| Is This Answer Correct ? | 0 Yes | 0 No |
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
what r the drawbacks and limitations of QTP?
hi, for QTP TRAINING......SURESH REDDY SMART SOLUTIONS sr.nagar IS BEST OR NOT? how faculty teaches?
Explain about the test fusion report of quicktest professional?
Today only i joined in this site. Can u please tell me definition of parameterization. and how i can do the parameterization?
After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.
HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?
where did you automate in your project?(please tell me example senarios)
how to associate object repository during runtime in qtp
How to analyzing test results using quicktest professional?
write a regular expression pattern for xyz?123?
How to test login page by using QTP