Windows UI API 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
Windows UI API-specific controls
In addition to the standard controls listed in this topic, Tosca Cloud also supports the following controls:
ContextMenu
ContextMenus can disappear when the application focus changes. When this happens, Tosca Cloud can't detect the control. In this case, use the standard module TBox Context Menu. You can find the module in the left pane of the test case building area, under Modules.
If you don't have this issue with the ContextMenu in your application, you can simply scan it use the resulting module in your test case.
DataWindow
DataWindow is a complex but versatile control in PowerBuilder applications. Typically, it's used to display and/or manipulate data within a contained space.
Generally, DataWindow controls tend to look like one of the following:
-
A table. In this case, you steer this control the same way you steer a table.
-
A container for other controls, such as Buttons, Labels, or Checkboxes. These embedded controls also appear within a container when you scan your application. You can simply select which of these controls you want to add to your module.
To work with DataWindow controls in Tosca Cloud, you need to manually enable each runtime including scanning. To do so, follow these steps:
-
Go to %localappdata%\TRICENTIS\Launcher\TBox\<version>\PowerBuilder and launch the Windows Command Prompt.
-
For each Powerbuilder application you want to steer with Tosca Cloud, run this command:
-
Tricentis.Automation.PowerbuilderEnabler.exe <pathToRuntimeDlls>
-
Replace <pathToRuntimeDlls> with the path to the folder which contains the Powerbuilder runtime DLLs, such as pbvm.dll. Example: C:\Program Files\MyPBApp.
-
TreeNode
Tosca Cloud identifies TreeNodes as tree views.
Additionally, you can verify the following properties:
|
Property |
Description |
|---|---|
|
Selected |
Verifies whether the entry is selected. |
|
Expanded |
Verifies whether the entry is expanded or not. |