Skip to main content

Element: Test Case

Symbol: _tm_icon_test_case.png

Function: The test element structures the test actions into logical units in the test script.

When you select a _tm_icon_test_case.png <test case> test element in the test script, the Test Case tab opens.

The test actions in the test script below a test case are run and evaluated successively during execution. From this, the evaluation of the test case counts as passed when every single test action could be executed successfully. Otherwise a test case counts as failed.

Tab: Test Case

Title

Title for identifying the test case

Example: Check Minimum Time

Generate new scope

standard icon: Two tables are displayed: one for Input parameter and one for Output parameter.

By default, test cases use the scope of their test script and pass this to their test actions.

Table 9. Input parameter

Input parameter which acts as an interface between the test script and the test actions

Hint: The input parameter name and variable name may be identical.

When the test case is executed, the values of the test script variables are passed to the input parameters of the test actions. Then they can be used in the configuration of the test actions.

Name

Name of the input parameter

Used within the test actions of the test case (internal variable of the test case)

This is also the declaration of the interface variables.

Example: Var_A

Variable

  • Name of the test script variable

    Its value is passed to the input parameter.

    Note: The variable is declared in the test script.

    Hint: A variable $ENV or a variable $EXEC, for example, can be passed as a variable.

  • Expression whose value is passed to the input parameter

    Example: $EXEC.TESTER_NAME = t.tester

  • Literal (string) which is passed to the input parameter

Move Up

Moves the selected input parameter one line up

Move Down

Moves the selected input parameter one line down

Remove

Deletes all selected input parameters



Table 10. Output Parameters

Output parameter which acts as an interface between the test script and the test actions

Hint: The output parameter name and variable name may be identical.

When the test action is executed, the values of the initial parameters of the test actions are passed to the test script variables. They can then be used, for example, in other test cases.

Name

  • Name of the output parameter

    Set in the test script (internal variable of the subscript)

    This is also the declaration of the interface variables.

    Example: bResult

  • Expression whose value is passed to the test case, and therefore also to the test actions

  • Literal (string) which is passed to the variable

Variable

Name of the test script variable

Gets a value from the test case

Example: TS_CaseA_Result

Hint: A value of the test case is passed to the variable (and specified in Name) by an output parameter, as an expression, or as a literal.

Move Up

Moves the selected output parameter one line up

Move Down

Moves the selected output parameter one line down

Remove

Deletes all selected output parameters