It’s time to record your first test. Perform manually the actions you determined in the previous chapter 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, make sure you’re in the recording module view of Recording1.rxrec.-
Click the RECORD button to start the recording. Ranorex Studio automatically switches to the demo application and the Ranorex Recorder controls displays.
-
Click the Enter your name text field, enter Harry, and click Submit.
Validate a UI element
Notice that Harry appears in the welcome message. Now, let's add a validation so Ranorex Studio verifies this during testing.
-
Click 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 UI element has been identified and 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, click Next to confirm.
-
The Validation settings window opens. Here, you can select which attributes to validate. In this case, Text is correctly preselected. Click OK to confirm and switch back to recording mode.
- To stop the recording, click Stop in the Recorder controls and return to the Recorder view.
Download the sample solution
You can build your test solution according to the instructions in this chapter. Alternatively, you can download a prepared sample test solution.
- Unzip to any folder on your computer
- Start Ranorex Studio and open the solution file
Introduction.rxsln
Review more information about Ranorex Recorder and how to analyze your recording in the following section Analyze your recording.