The Variables page of the Keyword Test editor is used to create, delete or modify keyword test variables. These variables parameterize operations and pass data from one operation to another during the test run.
The following image demonstrates the overall view of the Variables page:
Information on the Panel
The page is a table that provides information about the variables. Each row in this table corresponds to a single variable. Table columns show properties of this variable:
Column | Description | ||
---|---|---|---|
Name | Specifies the variable name.
|
||
Type | Specifies the variable’s type. The following types are possible:
|
||
Default Value | Specifies the value that will be assigned to the variable when the keyword test starts.
|
||
Category | The category of the variable. This is a helper value like Description. It allows you to sort, filter or group the variables list on the Category column to see the variables of a desired category. | ||
Description | Any descriptive text related to the variable. |
You can arrange columns in the table using the customization capabilities provided by TestComplete.
Working with Variables
Creating New Variables
-
Right-click within the Variables page and choose New Item from the context menu.
TestComplete will add a new row to the Variables table. You can then enter the desired values into the table cells.
Modifying Variables
-
Click the cell you would like to change and edit the cell value using the in-place editor.
Deleting Variables
-
Right-click the desired variable in the Variables page and choose Delete from the context menu.
Note that you can also create, modify and delete variables directly from your tests using the KeywordTests.TestName.Variables
object.
See Also
About Keyword Testing
About Keyword Test Editor
Keyword Test Variables