Analyze your recording
Required time: 3 minutes
After each recording, analyze the recorded actions and repository items generated, and how these are connected. This helps prevent errors.
In this chapter
The actions table in the recording view contains 6 individual actions, numbered accordingly. Let’s take a closer look at them.
Action #1 – Run application
This action starts the Ranorex demo application.
Action #2 – Mouse click
This action performs a click in the EnterYourName text box.
Action #3 – Key sequence
This action enters Harry in the EnterYourName text box.
Action #4 – Mouse click
This action clicks Submit, updating the welcome message with the name entered in step 3.
Action #5 – Validation
This action validates whether the welcome message has been updated correctly.
Action #6 – Mouse click
This action clicks Exit, closing the demo application
If you did not follow the recording instructions precisely, there may be extra recorded actions. If so, identify actions which do not belong to the intended test and delete them.
Regarding validation – verify that the input key sequence exactly matches the validation reference text sequence! Validation distinguishes upper case and lower case letters.
Several of the actions listed above manipulate UI elements. These UI elements are represented as repository items in the repository, which appears in the lower half of the recording view.
Item #1 – RxButtonExit
This repository item represents the Exit button
Item #2 – EnterYourName
This repository item represents the EnterYourName text box
Item #3 – BtnSubmitUserName
This repository item represents the Submit button
Item #4 – LblWelcomeMessage
This repository item represents the Welcome Message text label
The link between actions and repository items
Actions that manipulate UI elements, such as clicking a button, are automatically linked to the corresponding repository item. The repository item appears next to the action in the actions table. When you click the action, the item is also highlighted in the repository.
Actions that don’t manipulate UI elements, such as starting an application, aren’t linked to repository items.
Actions that manipulate the EnterYourName text box
The ‘Mouse’ action performs the mouse click into the text box. The ‘Key sequence’ action enters Harry in it. Both actions are linked to the EnterYourName repository item
Repository item that represents the manipulated UI element