Steering UIA 3.0 Controls

UIA 3.0 Modules are created by using Tosca XScan. Please follow the steps below to create Modules with the Tosca UIA Engine:

  1. In Tosca Commander, right-click on a Module folder or use the dynamic menu Modules and select Scan->Application.

  2. Right-click onto the screen you would like to steer and choose UIA from the appearing menu.

Selecting the UIA Engine in Tosca XScan

For further details, please refer to chapter "Scan Modules".

The following standard controls can be steered as described in chapter "Steering Controls":

This topic describes how to steer UIA Engine 3.0-specific controls.

ComboBox

To scan UI ComboBoxes with ToscaXScan, first you need to enable them in your test application. Learn how to steer them.

Note that if you record TestCases with the Tricentis Automation Recording Assistant (Tricentis ARA), UI ComboBoxes are disabled.

ContextMenu

Tosca automatically creates a ContextMenu when you record the steering of a Win32 context menu with Tricentis Automation Recording Assistant (Tricentis ARA).

In this example, you record a right-click on Engine Performance [kW] and the selection of Select all in the context menu with Tricentis ARA. Tosca automatically generates a TestStep and the required Module out of the recorded control.

Steering of a context menu in an HTML application

 

In the example below, the UIA Engine 3.0 selects Insert Folder from the generated TestCase ContextMenu:

ContextMenu: Inserting Folder

Label

Tosca XScan identifies UI text controls as Labels. Learn how to steer them

RichTextBox

UI RichTextBoxes can be scanned with Tosca XScan and they are identified as TextBoxes. This control type is steered as described in chapter "TextBox".

Spinner

UI spinners can be scanned with Tosca XScan and they are identified as TextBoxes. For further details, please see also chapter "TextBox".

In the example below, the engine verifies whether the value 11:00:00 exists in the spinner Sample Spinner:

UI Spinner

TabControl

UI Tab controls can be scanned with Tosca XScan and they are steered as described in chapter "Listbox".

Use TabItems to select individual tabs of a TabControl. To create a TabItem, right-click on a TabControl and choose Create Generic TabItem (see chapter "Generic list items").

In the example below, the engine selects the tab Tasks from the TabControl Tab:

UI TabControl - selecting a tab

In this example, the engine verifies whether the tab Completed is selected in the TabControl Tab:

UI Spinner - verifying a tab

Table

UI GridPattern tables can be scanned with Tosca XScan. For further information on how to steer tables, please see also chapter "Table".

Use embedded TextBox controls to enter text into cells, and embedded ComboBox controls to select values from ComboBoxes. CheckBoxes are selected via embedded CheckBox controls (see chapter "Defining controls in cells").

In the example below, the engine writes the value My text into the first row of the first column:

Table: Entering text