Learn more about the Recorder working environment and how to analyze the sample recording from the example test.
Recorder working environment
The Recorder working environment has four sections:
- Projects view: Displays all files that are created and managed as part of a test project in a folder hierarchy. For more information, see Ranorex Studio Start page.
- Module browser: Shows all modules and module groups you can use to build tests. For more information, see Test suite.
-
Action table
- The steps you record appear as actions in the action table.
- The table lists the actions in the order you perform them. For more information, see Actions. -
Repository
- Repository items represent UI elements in your application under test (AUT)
- A corresponding repository item references each UI element affected by an action during recording. For more information, see Repository.
Action table analysis
Let’s have a closer look at the five actions in the action table. For more information about actions, see Actions.
-
Mouse click action
- Represents the click into the name text field.
- The last column of this action contains a reference to the repository item that represents the UI element EnterYourName (the name text field). -
Key sequence action
- Represents the text input into the name text field.
- In our example, Harry is the input, and the UI element EnterYourName is the target UI element. -
Mouse click action
- Action #3 represents the click on the Submit button in the Demo App.
- The Submit button UI element is referenced in the last column by a corresponding repository item. -
Validation action
- The test validations are also represented as actions.
- Ranorex matches the text in the changed welcome message against a reference value. -
Reset
- Represents clicking on Reset to reset the welcome message.
Repository analysis
Our example consists of four repository items organized into two folders. Each repository item corresponds to a UI element in the application under test. For more information Repository.
-
Item 1 – EnterYourName
Represents the name text field of the Demo App. -
Item 2 – BtnSubmitUserName
Represents the Submit button of the Demo App. -
Item 3 – Reset
This repository item represents the Reset link of the Demo App. -
Item 4 – LblWelcomeMessage
Represents the text label that contains the welcome message of the Demo App.
The link between actions and repository items
Recorded actions and repository items are managed and stored separately, but they are linked to each other.
The link between actions and repository items is described in Actions & repository items.
-
Actions referencing UI element(s)
Both the mouse clicks into the name text field (Action #1) and the Harry text input into the name text field (Action #2) affect the same UI element. Therefore, they are both actions are linked to the EnterYourName (Item #1) repository item. -
Repository item representing a UI element
- UI elements are represented by repository items.
- Repository items have a name (e.g., EnterYourName) and a location in the repository (path).
You can download the sample solution used for this article below.
Sample solution
Theme: Analyzing recordings
Time: Less than 10 mins
Installation
- Unzip to any folder on your computer.
- Start Ranorex Studio and open the solution file.
Introduction.rxsln.