It’s time to record your first test. Manually perform the actions you determined in 2. Plan Your First Test and let Ranorex Studio record them.
Steps for successful recording
Ranorex Studio supports a wide range of environments, test specifications, and technical settings.
While recording, use only the mouse for navigationAvoid using other input devices such as graphic tablets, touchpads, pens, … |
|
Click every stepDo not use the tab key to navigate through forms |
|
Close other applicationsClose any other application or tool that you don’t need for the test |
|
Open the user guide on another machineIf possible, open the user guide on another machine or tablet for reference while recording your test |
|
Click pause/continue in the recorderTo 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 |
|
Set display scaling to 100 %In the Windows display settings, set display scaling to 100 % for all of your displays. |
Record the test
In Ranorex Studio, ensure the following before you start recording:
- You are in the recording module view (Recording1.rxrec tab).
- The Demo Application is running. This should already be the case if you followed the instructions in 3. Create a New Solution.
-
Select the RECORD option to start the recording. Ranorex Studio automatically switches to the demo application and the Ranorex Recorder controls display.
-
Click the Enter your name text field, enter Harry, and click Submit.
Validate a UI element
Notice that Harry appears in the welcome message. Add a validation so Ranorex Studio verifies this during testing.
-
Select Validate in the recorder controls to pause the recording and switch to validation mode.
-
Mouse over the welcome message. A purple frame appears. This means the Ranorex Studio identifies the UI element. Click it.
-
The Select element window opens. Check whether the screenshot in the lower right shows the UI element you want to validate. In this case, that's the welcome message, select Next to confirm.
-
The Validation settings window opens. Here, you can select which attributes to validate. In this case, Text is the correct attribute. Select OK to confirm and switch back to recording mode.
- Select Stop in the recorder controls to stop the recording and return to the recording module view.
Download the sample solution
Build your test solution according to the instructions in this chapter. Alternatively, download a prepared sample test solution.
Sample solution Theme: Recording a test
Time: Less than 10min
Installation
- Unzip to any folder on your computer
- Start Ranorex Studio and open the solution file
Introduction.rxsln
Review more information about analyzing your recording in 5. Analyze Your Recording.