Action components & propertiesActions in Ranorex Studio are listed in the sequence of their execution and are defined by several components explained herein.
In this chapter
Action componentsWe distinguish 7 different action components which are represented by columns in the below-displayed image. These components are grouped as follows.
Action symbol and sequence number
- Each action type is characterized by a small – self-explaining – symbol
- The sequence number represents the execution sequence of actions
Action type and action name
- Action names give evidence to the type, behavior, and function of an action
- By now we distinguish between 6 basic actions and 14 smart actions
Action-type specific content
- The contents of columns #3-#5 are depending on the action type
- Run application actions contain run parameters
- Mouse click actions address the type of click action, button pressed and position
- Key-sequence actions contain the text string to enter
- Column #6 contains the reference of an action to the corresponding UI-element
- The management of actions and the management of UI-elements are separated within Ranorex
- The link between actions and repository items is a fundamental concept and is addressed in a separate chapter
- It is recommended to use comments for raising comprehension on what is recorded
Actions and screenshotsWhenever an action refers to a UI-element in the screen of the application under test (AUT), the desktop surrounding the referring UI-element is screenshotted and stored with the action. This screenshot can be seen along with the action.
Turning screenshots on/off
Screenshots are turned shown/hiddenf by clicking the Screenshot button in the action list toolbar.
Action propertiesAction properties describe the various options for setting and controlling the behavior of actions. Action properties are divided into two groups – standard properties which are shared among almost all actions and action-specific properties which belong to one, or a specific group of actions which share these properties.
Select action and open the context menu
Click Properties, or hit the F4 key to open property information
Opening action properties
Result(s):The properties pane opens on the right side of the Studio working environment.
Standard action propertiesHerein, a list of standard action properties is described. These properties are shared among almost all action types.
Standard action properties
- Possible value: empty, or text
- This property can also be set directly in the action table
- This property is shared among all actions except the ‘Separator’ action
Continue on fail
- Possible value: false (default), or true
- If value set to ‘false’, test execution stops in case of execution failure
- If value set to ‘true’, test execution continues with next action
- Possible value: time in milliseconds (ms)
- Defined action duration
- Standard values for almost all action types
- Not shared by report action and separator action
- Possible value: true (default), or false
- Value can be set herein, or directly within the context menu (Ctrl#E)
- Property shared by all actions except separator action
- Possible value: Default (default), true, or false
- The property controls whether the action is added to reporting, or not
- The ‘Default’ value is specified in the Studio settings
- The default value is ‘true’ which means that the action item is logged
- This property is shared among all except the separator action which is logged per definition
- Possible value: Reference to a repository item
- This property belongs to all action types which can refer to a repository item
- If linked to, the corresponding repository item is printed here
- This property is shared among 14 of 22 action types