Click here for the Ranorex 3.x test automation documentation
This quick start example shows how to create a Ranorex object repository and how to use it in test automation code. The main task of an object repository is to separate identification information (RanoreXPath) from test automation code. Additionally, the object repository could be used to represent a logical view on the application under test.
Open the Calculator application and track those buttons you want to automate by clicking the 'Track' button.
The tracked buttons from the calculator application are now listed within the object repository. In addition for each button a logical name is automatically linked to a the RanoreXPath identifier.
Add the generated object repository to your project by selecting the context menu item 'Add | Existing Item'.
Double click the object repository to see the objects tracked with RanorexSpy. Also open the generated repository source code to ensure code completion within the code editor.
Create your own method as a container for your object based test automation code.
Note: This automation code requires an opened calculator application.
