The Add Variable wizard creates new variables for keyword tests, projects, project suites or network suites. By using this wizard you can specify a variable’s name, type, description and value. You invoke the wizard from the Operation Parameters dialog that is used to specify parameters of keyword test operations.
The wizard includes several pages.
The first page of the wizard allows you to specify where the variable will be added. It may be the current keyword test, project, project suite or network suite.
To switch to the next page of the wizard, click Next.
On this page, you can specify variable properties that are needed for variable creation:
Specify the variable name in the Name edit box.
|Note:||The variable name is used to address the variable in scripts, so it must match the naming rules of the scripting language used in your project. The easiest way to follow this rule is to enter a name that only consists of alphanumeric or underscore characters and starts with a letter.|
To switch to the next page of the wizard, click Next. Finish will generate the variable that has the following default value:
On the last page, specify the value which the variable will have by default.
The page’s content depends on the variable type specified on the previous page. For example, if you specify the Table type, using the Variable’s default value page you can change the dimension of the array that will be stored in the variable and specify values of the array’s elements. For more information about this, see Working With Table Variable Editor. If you are creating the Object variable, this page is not available at all.
If you are creating a DB table variable, select the DB table value in the Type drop-down list and specify the variable in the ensuing Add DB Variable to Keyword Test wizard.
To close the wizard and add a new variable to a keyword test, project or project suite, click Finish. Cancel will close the wizard without performing any actions.
After creating a variable, it will appear on the Variables page of the Project, Project Suite or Keyword Test editor. Using this page, you can delete or modify the variable.