Record your first test
Required time: 6 minutes
In this chapter
Steps for successful recording
Ranorex Studio supports a wide range of environments, test specifications, and technical settings. So that your first recording is a success regardless of your environment, we recommend the following:
While recording, use only the mouse for navigation
Avoid using other input devices such as graphic tablets, touchpads, pens, …
Click every step
Do not use the tab key to navigate through forms
Close other applications
Close any other application or tool that you don’t need for the test
Open the user guide on another machine
If possible, open the user guide on another machine or tablet for reference while recording your test
Click pause/continue in the recorder
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
Set display scaling to 100 %
In the Windows display settings, set display scaling to 100 % for all of your displays.
Select the app and start the recording
Click the RECORD button in the recording view.
Click Desktop in the dialog that opens.
In the next window, click Add app…
Browse to where you saved the Ranorex demo application, e.g. the
/Downloads/ folder of your computer.
In the folder, select
RxDemoApp.exe and click Open. The Ranorex demo application is selected as the test application.
Do not click the Record button yet. Once you’ve clicked it, ALL key presses and most user interactions will be recorded. Read the next section first and then carry out the instructions in it.
Record the test
Validate a UI element
We can see that Harry has appeared in the welcome message. Now we’ll add a validation so that Ranorex Studio verifies this during testing.
The Select element window opens. Check whether the screenshot in the lower right shows the UI element you want to validate. In our case, that’s the welcome message. Click Next to confirm.
The Validation settings window opens. Here, you can select which attributes to validate. In our case, Text is correctly preselected. Click OK to confirm and switch back to recording mode.
Exit the app and stop the recording
Click Exit in the bottom right of the demo application to close it.
Click Stop in the Recorder controls to stop recording.
The image below shows all the recording steps described in this chapter. You can use it as an on-screen aid while recording.