Java Swing 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
* Limitation: You can't create structured list items.
Java Swing-specific controls
In addition to the standard controls listed in this topic, Tosca Cloud also supports the following controls:
ListView
Tosca Cloud identifies ListViews as listboxes.
Java Spinner
Spinners consist of a spinner control and two buttons.
Tosca Cloud supports the following spinner types:
-
ListItemSpinners allow you to select a text.
-
NumberSpinners allow you to select a number from a pre-defined range.
-
DateSpinners allow you to select a date.
You can steer the text content of spinner controls like textboxes. To switch the items within the spinner upwards or downwards, steer the controls as buttons.
In addition to general properties, NumberSpinners and DateSpinners also have special properties you can use in your tests:

For NumberSpinners, you can use the following additional properties in your tests:
Property |
Description |
---|---|
Maximum |
Maximum value you can select in the spinner. |
Minimum |
Minimum value you can select in the spinner. |
StepSize |
The number interval used in the spinner. |

For DateSpinners, you can use the following additional properties in your tests:
Property |
Description |
---|---|
Start |
The earliest possible date that is available. |
End |
The latest possible date that is available. |
CalendarField |
The time interval to increase or reduce the date value. |
ProgressBar
ProgressBars in Java Swing work the same way as ProgressBars in Java FX.
PushButton
Tosca Cloud identifies PushButtons as buttons.
ToggleButton
Tosca Cloud identifies ToggleButtons as buttons.
Use the property Selected to verify the status of a ToggleButton.
ToolBar
Tosca Cloud identifies ToolBars as menus.
You can scan all supported standard controls inside a toolbar as individual controls.
To steer them, enter the name of a ToolBar button or the name of the embedded control.
Java security message
Depending on the security settings of your machine, Java Runtime Environment may open a security message when you start a Java application or after you update Java Runtime Environment.
To steer the Java security message, use the standard module Java Security Information. You can find the module in the left pane of the test case building area, under Modules.
To ensure that Tosca Cloud runs your test case accurately and regardless of whether the security message appears, you have to use the module in reusable test steps for the start of the application.
Java FX controls within Java Swing applications
Tosca Cloud recognizes Java FX controls within Java Swing applications. You can work with them as described in Java FX controls.
Hidden controls
You can scan and steer controls that are outside the visible area of your application under test, but only if they're part of a scroll bar (ScollPane). Tosca Cloud automatically focuses the area which holds the respective control.