Before you start recording
Whether your test is simple or complex, preparation is key in test automation. Preparation prevents mistakes and saves time in the long run. This chapter describes the steps to take before you start recording your test.
Take the time to consider the following recommendations. They can make your testing life easier and your work more efficient.
|Do you want to start the AUT yourself each time, or do you want Ranorex to start it automatically at the beginning of the recording? In either case, you need to know the installation path and any required starting parameters.|
|Test data & parameters||Make sure you have all
|Test instances||Only run one instance of your AUT during recording.|
|Recording interaction||All user actions are captured during recording, even accidental ones that are unrelated to the AUT. Make sure to disable anything that could interfere with recording, such as pop-ups.|
Our AUT: The Ranorex Demo Application
To better demonstrate the concepts and methods in this User Guide, we’ve created a special app, the Ranorex Demo Application. It will serve as our AUT for the explanations and samples in the fundamentals and advanced chapters of this User Guide.
Download the Demo Application
The Ranorex Demo App in the default folder
Start the AUT
Before planning a test in detail, start the AUT to ensure that it is installed properly and is working.
Opening the Ranorex Demo Application
Plan the recording
Plan your recording well. It helps prevent tedious restructuring and editing later.
Use a recording script
- Think about the steps you need to record.
- Prepare the necessary input data (usernames, passwords, etc.).
- Perform the test at least once without recording.
Consider the recording size
- Keep recordings as small as possible.
- Larger, modular test cases can be built out of smaller, reusable recordings.
Plan how mouse movements will be recorded
- By default, mouse movements are not recorded without mouse clicks.
- When navigation through menus is important for the test, use mouse clicks for detection, or use the option for recording mouse movements within the Recorder control center.
Following the recommendations above, we have defined a simple test with five steps. This same test serves as an example in the coming Ranorex Recorder chapters.
1. Open the Ranorex Demo Application.
2. In the “Enter your name” field, enter Harry and click Submit.
Entering and submitting a name
3. Verify that the welcome message changes accordingly.
4. Reset the welcome message.
5. End the demo application and stop the recording.
Recorder default settings
There are many settings you can configure to customize the behavior of the Recorder. The default settings are usually suitable for most recording tasks, including the ones in this chapter. However, for some recording tasks, you may need to change the Recorder settings. To access them, click Settings in the toolbar of the Recorder working environment or in the Ranorex Studio toolbar.
Global & local Recorder settings