Welcome to the Ranorex Support Center

Ranorex Recorder settings

The purpose of this chapter is to introduce and explain the various options for setting and configuring Ranorex Recorder.

In this chapter

General settings


General settings are the ones which can be accessed by selecting the ‘General‘ register tab in the settings dialog window.

Ranorex General settings – part I
  1. Use ‘ensure visible’ by default: Specifies whether a UI-element used as Ranorex role should be forced to become visible before automation or not. By default, this value is automatically used for each repository item

  2. Enable search by unique ID (if available): Specifies whether web elements should be identified using their unique id or not

  3. On mouse/pointer move check if location is within visible desktop bounds: Specifies whether an exception should be thrown if the mouse/pointer tries to move outside the visible desktop bounds or not

  4. Maximum length of text values in RanoreXPaths: Specifies the maximum length of attribute values used within RanoreXPath

  5. The factor that all timeouts of find operations are multiplied with: Multiplies all repository timeouts with the specified value to prevent test cases from failing in case of different timing behavior. This is especially useful when executing tests on different system configurations

Note Icon

Note

The value can also be set at the time of executing a test suite using the test suite’s command line arguments, or by directly using the Ranorex.Core.Configuration.Current.Adapter.TimeoutFactor property in code.

Ranorex General settings – part II
  1. Restore limitation warnings: Resets the ‘Do not show again’ checkboxes used to suppress the assistance dialog for technology limitations. Click to show the dialog again for non-instrumented technologies or applications

  2. Restore ignored dialogs: Resets all other ‘Do not show again’ checkboxes

  3. GDI capture settings…: Opens the dialog to change the current GDI capture list

Download

Further reading


The GDI capture feature of Ranorex is introduced and explained in detail in > Ranorex Studio advanced > Ranorex Spy > ⇢ GDI capture feature.

  1. Copy runtime to output: If checked, copies the Ranorex Studio runtime to the output folder when compiling/running a test

  2. Include license information: Click to include the local machine’s floating license information with the test. For this to work, you must have a solution opened and a floating license configured on the local machine.

  3. Show invisible characters in report: Display otherwise invisible characters in report values.

Ranorex General settings – part III
  1. Restore defaults: to reset all values to their default values

  2. Import…/Export…: to save and load user-specific configurations

  3. Apply: is necessary to make changes valid

Recorder settings overview


Recorder settings can be accessed through the settings dialog. Depending on from where the dialog is opened, different options are available. If you open the settings from within the Studio Recorder view (SETTINGS button in action table), the configuration options for the current recording are available in addition to the recorder default settings.

Recorder settings overview
  1. Current recording: This tab primarily contains configuration parameters for code generation specific to the current recording. All settings on this tab page are stored within the recording.

  2. Recorder defaults: In this tab global default values for every newly created recording are specified.

Note Icon

Hint

The settings tab page for Current recording can only be accessed from the SETTINGS button within a recording.

Recorder default settings


In this tab, you can specify global default values for every newly created recording. The settings are divided into three sections:

Recording

Recorder default settings – part I
  1. Capture a screenshot for each step: Specifies whether a screenshot of the current action should be made during the recording.

  2. Highlight elements: Specifies whether element highlighting during recording should be enabled.

  3. Coordinate recording mode: Specifies the way coordinates will be recorded. Following options are available:

None:Actions will always be invoked on the ‘center’ of the recognized elements
Pixel:Relative coordinates within a recognized element are recorded in pixels
Proportional:Relative coordinates within a recognized element are recorded in percent

Timings for new actions

Note Icon

Note

Please note that the following settings only affect newly created actions, not existing actions.

Recorder default settings – part II
  1. Use timings also for recorded actions: When enabled, the specified timings below will be taken instead of the recorded durations.

  2. Use keystroke optimization: Enabled by default. This setting makes recorded key sequences easier to read. Only applies to characters of the English alphabet, i.e. A–Z. Can also be enabled/disabled in the keystroke editor of an action.

DisabledEnabled
{LShiftKey down} h {LShiftKey up}H
{CAPITAL} helloHELLO
helll {Back} ohello
hello {Space} therehello there
  1. Key sequence split time (ms): Use this setting to specify the maximum time between key presses in a key sequence during recording. If this time is exceeded, the sequence is split into multiple key sequences.

  2. Mouse move time per action (ms): Specifies the time in milliseconds used to move the mouse to the UI object related to the action.

  3. Mouse/Pointer-related action time (ms): Specifies the overall time in milliseconds used for a manually created mouse action. The value set for this setting is only taken into account for manually created actions, when the time of an action cannot be determined during recording or when ‘Use timings also for recorded actions’ is activated.

  4. Keyboard-related action time (ms): Specifies the default overall time in milliseconds used for a manually created keyboard action. The value set for this setting is only taken into account for manually created actions, when the time of an action cannot be determined during recording or when ‘Use timings also for recorded actions’ is activated.

Code generation

Recorder default settings – part III
  1. Recording namespace: Specifies the namespace used for the generated code.

  2. Recording class name: Specifies the class name used for the generated code.

  3. Use item logging by default: Activate this setting to turn on a default logging message for each action item.

  4. Generate replay reports: This setting is used to turn the generation of reports during replay on or off.

  5. Show warnings for possible invalid property values: Option to turn invalid property warnings on/off.

Current recording setting


This tab primarily contains configuration parameters for code generation specific to the current recording. All settings on this tab page are stored within the corresponding recording.

Current recording setting – part I
  1. Description: Can be used to briefly describe the actions the recording performs.

  2. Recording namespace: Specifies the namespace used for the generated code.

  3. Recording class name: Specifies the class name used for the generated code.

  4. Replay speed factor (%): The speed factor is used to increase or decrease the replay overall speed by a specific factor value.

  5. Replay iteration count: The repeat count is used to specify the number of iterations.

  6. Recorder UI mode: By specifying the recorder UI mode the set of actions available in the actions table will be adapted (“Global”: all actions, “Desktop & Web”: no mobile actions, “Mobile”: no mouse and keyboard actions).

Current recording setting – part II
  1. Enable turbo mode for replay and generated code: Is used to specify whether recorded delays between actions should be part of the generated code.

  2. Generate replay reports: This setting is used to turn the generation of reports during replay on and off.

  3. Use item logging by default: Activate this setting to turn on a default logging message for each action item.

USERS LOVE US

SUBSCRIBE TO OUR NEWSLETTER

Get the latest test automation information right in your mailbox.

FOLLOW US

© 2024 Ranorex GmbH. All Rights Reserved