Table
This topic describes how to steer tables with Tosca Cloud.
Use the following action modes to steer columns, rows and cells in tables:
Action Mode |
Value |
Description |
---|---|---|
<value> |
Entering a value |
|
Verify |
<value>, <property> |
Verifying a value or a property |
Constraint |
<value> |
This restricts the search |
<buffer name>, <property>-><buffer name> |
Buffer the value of a cell, row, or column. |
|
Exclude |
{TableCompare} |
This excludes rows and columns from the baseline comparison. |
Use the action mode Select to select the table.
Spaces, tabs and line breaks will be ignored during value comparisons if the action mode Constraint is used in a table.
For cells, you can only use the action mode Input with the value CLICK. To use any other Input value for cells, you have to create embedded controls.
In addition to the general properties, you can verify the following properties:
Property |
Description |
Available for |
---|---|---|
ColumnCount |
Number of columns in the table. |
table |
RowCount |
Number of rows in the table. |
table |
ColumnNumber |
Index of the selected column. The value for a header column is 0 and the index for the remaining columns is relative to this column. |
column |
RowNumber |
Index of the selected row. The value for a header row is 0 and the index for the remaining rows is relative to this row. |
row |
RawColumnNumber |
Index of the selected column. It always starts at 1. |
column |
RawRowNumber |
Index of the selected row. It always starts at 1. |
row |
ResultCount |
Number of cells in a table which contain the content (constraint) you specify. Note the following:
|
row, column |
Table structure
The Table control consists of <Col> and <Row> attributes. Each row or column may contain several <Cell> attributes.
Rows, columns and cells must be specified by using the name of the corresponding attribute. By doing so, the attribute name will be modified. Values in cells are specified via the Value column.
The following options are available for identifying cells:
Table attribute |
Description |
---|---|
Baseline |
Indicates that the table control contains a baseline. |
<Row> |
Possible values for identifying rows:
The prefix $ steers a row in relation to its header. To steer a row based on its absolute position in a table, use the prefix #. |
<Col> |
Possible values for identifying columns:
The prefix $ steers a column in relation to its header. To steer a row based on its absolute position in a table, use the prefix #. |
<Cell> |
Possible values for identifying cells that are available within a row or column attribute:
The prefix $ steers a cell in relation to a header. To steer a cell based on its absolute position in a row or column, use the prefix #. |
Defining headers
Table controls contain the following steering parameters: HeaderColumn and HeaderRow.Tosca Cloud automatically identifies and copies them to the module as a technical ID. The value of these properties specifies the row or column to be used as a header. The header is steered by specifying the value $header.
Columns that are located before the specified header or column are steered by using negative row or column numbers.
The table below includes examples that illustrate how to steer the according cell via row and column numbers:
|
|
|
|
|
|
$-2, $-2 |
|
|
|
|
$-2, $3 |
|
$-1, $-1 |
|
$-1, $1 |
|
|
|
$header, $-1 |
$header |
$header, $1 |
$header, $2 |
|
|
|
|
$1, $1 |
$1, $2 |
|
$2, $-2 |
|
|
|
|
|
|
|
|
|
|
$3, $3 |
FirstEmpty and LastContent commands do not work for columns or rows that are located beyond the defined header row or column.
Defining the value range of cells
Tosca Cloud copies cell values to the module as a value range of the parameter ExplicitName. These names are the input values for steering,You can select them from the drop-down menu of column, row or cell TestStepSubValues.
You can use date and time expressions, regular expressions and random values for defining the values.
Defining Decisive Columns
Some columns may contain entirely standard data such as currency or date values. Cells of these columns however need not contain any relevant data. Columns which contain crucial data are referred to as Decisive Columns in Tosca Cloud.
The system can read rows that are filled with concrete values.
Use the parameter DecisiveColumns of a table attribute to define one or more decisive columns. Several values are specified by separating them with semicolons.