Add Parameter Wizard

Applies to TestComplete 15.64, last modified on May 16, 2024

The Add Parameter wizard adds a new parameter to a keyword test. Use this wizard to specify the parameter name, type, default value and description.

To call the wizard, do any of the following:

  • Click the Add Parameter button on the toolbar of the Keyword Test editor.
  • Click the Add Parameter button on the toolbar of the Parameters page of the Keyword Test editor.
  • Right-click somewhere within the Parameters page of the Keyword Test editor and select Add Parameter from the ensuing context menu.

The wizard includes two pages:

Parameter Name and Type

On the first page of the wizard, you can specify parameter properties that are needed for parameter creation:

  • Specify the parameter name in the Name edit box.

    Note: The parameter name must match the naming rules of the scripting language used in your project. The easiest way to do this is to specify a name that only consists of alphanumeric or underscore characters and starts with a letter.
  • In the Type box, specify the parameter’s type. The following types are possible:
    • Boolean - The parameter can store Boolean values.
    • Double - The parameter can store floating-point values and dates.
    • Integer - The parameter can store integer values.
    • String - The parameter can store string values.
    • Object - The parameter can store object references.
  • In the Description edit box, specify any descriptive text related to the parameter.

Once you specified the desired data on the first page of the wizard, click Next to switch to the second page. Finish will generate the parameter that will not have the default value.

Parameter’s Default Value

On this page, you can specify the value which the parameter will have by default.

The page’s content depends on the variable type specified on the previous page. For example, if you specify the String type, the page contains the edit box where you can specify any string. If you are creating the Boolean variable, there is a combo box containing the True and False items in the page.

Working with the Wizard

After specifying the parameter's name, type and default value (optional), click Finish. This will close the wizard and add the new parameter to the keyword test. Cancel will close the wizard without performing any actions.

The created parameter will appear on the Parameters page of the Keyword Test editor. On this page, you can delete or modify the parameter.

See Also

Keyword Test Parameters
About Keyword Test Editor
Keyword Test Editor - Parameters Page

Highlight search results