WinForm controls
A control is a screen element in your application that you want to test. For example, a text box or a table. This topic lists all
Standard controls
Tosca Cloud supports the following standard controls for
WinForm-specific controls
In addition to the standard controls listed in this topic, Tosca Cloud also supports the following controls:
ContextMenu
To steer context menus, use the standard module TBox Context Menu. You can find the module in the left pane of the test case building area, under Modules.
DatePicker
Tosca Cloud scans the DatePicker forms Long, Short, and Custom, and identifies them all as Text. You can input or buffer DatePicker values.
To steer a DatePicker, follow these steps:
-
For the Value, enter the date in the format that your application under test requires.
-
For the DataType, select Date.
GroupBox
You can steer the controls inside GroupBoxes just like any other standard controls.
ListView
There are different ListView types:
-
You can steer the type Details as a tables.
-
You can steer other types such as LargeIcon, List, SmallIcon or Tile as a listbox.
Additionally, you can verify these properties:
Property |
Description |
---|---|
Selected |
Verifies whether the entry is selected. |
Focused |
Verifies whether the entry is focused. |
RichTextBox
Tosca Cloud identifies RichTextBoxes as textboxes.
TabControl
Tosca Cloud identifies TabControls as tabcontrols.
You can additionally verify these properties:
TabControl property |
Description |
---|---|
SelectedTab |
Verifies the name of the selected tab. |
TabCount |
Verifies the number of tabs. |
SelectedIndex |
Verifies the index of the selected tab. |
Every TabControl has Tab Items. For Tab Items, you can additionally verify these properties:
Tab Item property |
Description |
---|---|
Name |
Verifies the tab name. |
Selected |
Verifies whether the tab is selected (boolean). |
TabIndex |
Verifies the tab index. |
Toolbar
Tosca Cloud identifies Toolbars like this:
-
The ToolBar itself as a menu.
-
The controls in the ToolBar as MenuItems. You can select a menu entry directly, by entering the value x or X, or no value. You can also enter a path, separating nodes by ->.
Use the property Pushed to verify whether a ToolBar control is selected at runtime.
ToolStrip
ToolStrips are containers that contain other controls. You can steer the controls inside the ToolStrip just like any other standard controls.