Parameters - Reference

Overview

In T4J you manage the parameters of a test case in the Parameters section of the issue detail view. The parameters are displayed as a table. The table has the following columns:

Parameter Key

The key is the name of the parameter and must be unique within a test case. The key is given when the parameter is created, but can be changed at any time.

Identifier

The identifier is of the following form: ##ParameterKey## and is automatically generated from the parameter key. The identifier can be used within the name, description or expected result of test steps of the same test case. Occurrences of the identifier are replaced with the value of the corresponding parameter when a test case is executed.

Value

The default value of a parameter. The value is given when the parameter is created, but can be changed at any time. The value can be overwritten in a test plan or when a single execution of the test case takes place. 

Parameter Actions

Purpose

Action

Purpose

Action

Create parameter

  • If the test case has no parameters, select “Click to add a test parameter” and complete the Add parameter dialog.

  • If the test case already has parameters, select the + icon and complete the Add parameter dialog.

To create multiple parameters without leaving the Add parameter dialog, select the option Create another.

Edit parameter

Select the parameter’s edit icon and complete the Edit parameter dialog.

Delete parameter

Select the parameter’s delete icon and confirm deletion in the Delete parameter dialog.

Use parameter in a test step

Insert the parameter’s identifier in the name, description or expected result of a test step.

Overwrite default parameter values for a single execution

Provide the desired values in the Overwrite parameter values dialog that appears when you start the single execution of a test case.

Overwrite default parameter values for a test plan

Select the desired test case in a test plan and select the entry “Overwrite parameters” in the context menu. Then change the desired values. When the plan is executed, the values of the parameters are determined as follows:

  • overwritten parameter: The changed value is used.

  • non-overwritten parameter: The value in the test case, as currently defined, is used.

  • In the case of a non-overwritten parameter, the value at the time of execution may not be the same as the value when other parameters were overwritten, since the default values of a test case’s parameters may have subsequently been changed.