In this chapter, you’ll learn how to record a test and become familiar with the underlying automation concepts.
In this chapter
Ranorex Studio supports a wide range of environments, specifications, and settings. To make your first recording a success regardless of your environment, we recommend the following:
Avoid using other input devices such as graphic tablets, touchpads, pens, etc.
Do not use the tab key to navigate through forms.
Close any other applications or tools that you don’t need for the test.
If possible, open the user guide on another machine or tablet for reference while recording your test.
To check back to the user guide or perform actions that you don’t want to be recorded, just click the Pause button in the Recorder control center.
In the Windows display settings, set display scaling to 100 % for all of your displays.
To start recording, click Record. Ranorex Studio is minimized to the taskbar automatically.
The Recorder control center shows that recording is active.
The application under test comes into focus.
In the text field, enter ‘Harry‘ and click Submit.
We’ve recorded the UI interaction. Now it’s time to validate whether the interaction has led to the desired result, i.e. if the welcome message has changed accordingly.
The concept of test validation is introduced in Ranorex Studio fundamentals > Test validation > ⇢ Introduction.
Click Validate. Recording pauses and the Recorder switches to validation mode.
Select the UI element to validate:
To confirm the UI element, click Next.
Select the validation attributes:
Once you’ve finished the validation action, Ranorex Studio automatically continues recording. The next step is to finalize and end the test recording.
Click Reset to reset the welcome message to its initial state.
In the Recorder control center, click Stop to end the recording.
The recording ends, and you return to the Recorder view. If you followed the instructions exactly, you should see 5 recorded actions and 4 identified UI elements, organized in two folders as shown below.
You can build your own test solution according to the instructions in this chapter. Alternatively, you can download a prepared sample test solution.
Theme: Recording a test
Time: Less than 10min
Unzip to any folder on your computer
Start Ranorex Studio and open the solution file