#5 Analyze your recording | Ranorex

#5 Analyze your recording

 

Required time: 3 minutes

 

After each recording, you should analyze the result, i.e. the actions and repository items generated and how they’re connected. This helps prevent errors.

In this chapter

    Recorded actions

     

    The actions table in the recording view contains 6 individual actions, numbered accordingly. Let’s take a closer look at them.

    Action list with 6 recorded actions

    Action #1 – Run application

    This action simply runs the Ranorex Studio Demo Application.

    Action #2 – Mouse click

    This action performs a click in the Enter your name text box.

    Action #3 – Key sequence

    This action enters Harry in the Enter your name text box.

    Action #4 – Mouse click

    This action clicks Submit, updating the welcome message with the name entered in #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.

    Identified UI elements as repository items

    Several of the actions listed above manipulate UI elements. These UI elements are represented as repository items in the repository, which is displayed in the lower half of the recording view.

    Repository with corresponding four UI-elements

    Item #1 – RxButtonExit

    This repository item represents the Exit button.

    Item #2 – EnterYourName

    This repository item represents the Enter your name 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 (e.g. clicking a button) are automatically linked to the corresponding repository item. The repository item is displayed 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 (e.g. running an application) aren’t linkted to repository items.

    Link between recorded actions and UI-elements

    Actions that manipulate the Enter your name text box

    Action #2 performs a mouse click in the text box, action #3 enters Harry in it. Therefore, they are both linked to the EnterYourName repository item.

    Repository item that represents the manipulated UI element

    Further reading

    For a detailed explanation of actions, go to Ranorex Studio fundamentals > ⇢ Actions.

    For a detailed explanation of the repository and UI-elements, go to
    Ranorex Studio fundamentals > ⇢ Repository.