Combobox

There are two different ways to display comboboxes in Tosca Cloud, namely in single-line view and multiline view. The creation of modules varies for both views.

Single-line view

Single-line comboboxes are automatically created upon scanning with Tosca XScan. In the modules section, all combobox entries can be entered manually into the Value range column if separated by semicolons. The entries can be selected from a list in the Value column of the according test step value.

Action mode

Value

Description

Input

<value>

Selecting an entry

Verify

<value>

Verifying, if an entry is selected

Buffer

<buffername>

This writes the selected entry to a buffer of the specified name.

Multiline view

If comboboxes are used with multiline view, users can verify the properties of each individual list item.

In order to display multiline comboboxes, structured items can be created by using Tosca XScan, or a generic item can be manually created. For further information, please see also the sections below.

Tosca XScanmay experience issues if you try to steer the following combinations:

We recommend that you display them in single-line view.

Creating structured list items

An module attribute with a unique technical ID is created for each list item to be steered.

  1. Scan the required control.

  2. Select Filter in the Home menu.

  3. Select the control types Combobox and ListItem from the Filter window, and select the visibility option Visible and Invisible. The list items are shown in the tree view.

  1. Select all list items which should be transferred to the module.
  1. The list items must have a unique ID. This allows additional properties to be selected, for instance the Text property.

Steering in the TestCase

When you want to steer comboboxes with multiline view, you must set the action mode to Select.

You can verify the following properties with combobox entries in addition to the general properties:

Property

Description

Selected

Indicates if the entry is selected or deselected.

Text

Entry name

The functions listed below are available for combobox entries. If you do not enter a property in the test step value, the property from the Default property column is used:

Action mode

Value

Default property

Description

Input

 

Selected

Selecting an entry

Verify

True, False, <property>

Selected

Verifying a value or a property

Buffer

<buffername>

Selected

This saves the value true if the entry is selected. If not, false is saved.