Use the Test Parameters dialog to specify parameter values of the script routine or a keyword test executed by a project test item. The dialog appears when you press the ellipsis button within the Parameters cell in the Test Items page of the project editor.
This dialog lists parameters of the selected script routine or keyword test and lets you specify their values. It holds the following columns:
Column | Description |
---|---|
# | The parameter’s number. |
Name | Holds the parameter name. This property is read-only. |
Type | Specifies the parameter type. You can choose one of the following data types: Boolean, Double, Integer, String, Variant, Variable. Variant means that in the script, the parameter can hold any Variant-compatible value: string, integer, date, object, and so on. Variable means that you specify the project variable that holds this value instead of parameter value. |
Value | Specifies the parameter value.
Notes on using keyword tests:
|
For each parameter, you should select the parameter type from the Type list and specify the parameter value in the Value cell. For parameters of integer, double and string type you can type the parameter value directly in the Value cell. For boolean parameters you can check or uncheck the checkbox in the Value cell. For Variant type parameters you can choose whether the parameter will be unassigned or assigned with the null value (that is nil
in DelphiScript, Nothing
in VBScript, None
in Python, null
in JavaScript, JScript, C++Script and C#Script).
Instead of specifying the parameter value directly in the dialog, you can also choose an existing project or project suite variable that holds the desired parameter value. To do that, choose the Variable option in the Type list and then select the needed variable from the Value drop-down list.
To save the changes and close the dialog, press OK. Cancel will close the dialog discarding any changes.