In this chapter, learn more about the Recorder working environment and analyze the recording of the example test.
Recorder working environment
The Recorder working environment has four sections.
-
-
Projects view
Located in the upper left, the projects view displays all files that are created and managed as part of a test project in a folder hierarchy. The Projects view is discussed in Ranorex Studio fundamentals Ranorex Studio Start page. -
Module browser
Located in the lower left, the module browser shows all modules and module groups that can be used to build tests. The module browser and its applications are described in Test suite. -
Action table
- The steps you recorded appear as actions in the action table.
- They are listed in the order they were executed.
- In our example, the list contains five actions.
The concept of actions is explained in Actions.
-
Repositoy
- Repository items are representations of UI elements.
- Each UI element affected by an action during recording is referenced by a corresponding repository item.
- In our example, there are four UI elements organized in two folders.
Repositories and their applications are described in Repository.
-
Projects view
Action table analysis
Let’s have a closer look at the five actions in the action table. For more information on the concept of actions is explored in Actions.
-
Mouse click action
- This 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’ (i.e. the name text field).
-
Key sequence action
- This 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.
-
Mouse click action
- Action #4 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 validation is also represented as an action.
-
Ranorex matches the text in the changed welcome message against a reference text.
-
-
Reset
-
This action represents clicking on Reset to reset the welcome message.
-
Repository analysis
Our example contains four repository items organized in two folders. Each repository item corresponds to a UI element in the application under test. The concept of repositories is explained in Repository.
-
Item 1 – EnterYourName
This repository item represents the name text field of the Demo App. -
Item 2 – BtnSubmitUserName
This repository item 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
This repository item 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 both Actions & repository items and Repository items & actions.
-
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 linked to the ‘EnterYourName’ (item #1) repository item that represents this UI element. -
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 GUI (=path).
Theme: Analyzing recordings
Time: Less than 10min
Installation
- Unzip to any folder on your computer.
- Start Ranorex Studio and open the solution file.
Introduction.rxsln
.