63.8. Contextual menu options
The test scenarios designer provides contextual menu options, which enables you to perform basic operations on the table such as adding, deleting, and, duplicating rows and columns. To use the contextual menus, you need to right-click a table element. Menu options differ based on the table element you select.
| Table element | Cell label | Available context menu options |
|---|---|---|
| Header | #, Scenario description | Insert row below |
| GIVEN, EXPECT | Insert leftmost column, Insert rightmost column, Insert row below | |
| INSTANCE 1, INSTANCE 2, PROPERTY 1, PROPERTY 2 | Insert column left, Insert column right, Delete column, Duplicate Instance, Insert row below | |
| Rows | All the cells with row numbers, test scenarios description or test scenarios definition | Insert row above, Insert row below, Duplicate row, Delete row, Run scenario |
| Table interaction | Description |
|---|---|
| Insert leftmost column | Inserts a new leftmost column (in either the GIVEN or EXPECT section of the table based on user selection). |
| Insert rightmost column | Inserts a new rightmost column (in either the GIVEN or EXPECT section of the table based on user selection). |
| Insert column left | Inserts a new column to the left of the selected column. The new column is of the same type as the selected column (in either the GIVEN or EXPECT section of the table based on user selection). |
| Insert column right | Inserts a new column to the right of the selected column. The new column is of the same type as the selected column (in either the GIVEN or EXPECT section of the table based on user selection). |
| Delete column | Deletes the selected column. |
| Insert row above | Inserts a new row above the selected row. |
| Insert row below | Inserts a new row below the selected row. If invoked from a header cell, inserts a new row with index 1. |
| Duplicate row | Duplicates the selected row. |
| Duplicate Instance | Duplicates the selected instance. |
| Delete row | Deletes the selected row. |
| Run scenario | Runs a single test scenario. |
The Insert column right or Insert column left context menu options behave differently.
- If the selected column does not have a type defined, a new column without a type is added.
If the selected column has a type defined, either a new empty column or a column with the parent instance type is created.
- If the action is performed from an instance header, a new column without a type is created.
- If the action is performed from a property header, a new column with the parent instance type is created.