HAS_RUN

The HAS_RUN function returns a value indicating whether the named test function has been run or not in the current session.

This function would typically be used in a condition in the XJRunner test list.

Syntax

HAS_RUN( STRING testFunction )

Parameters

testFunction
The name of the test function.

Return value

A boolean value indicating whether the test function has been run or not.

Errors

A runtime error can occur in the following circumstances:

  • The named test function does not exist.
  • The test function name is ambiguous, because more than one function in the test list has that name.

Ambiguities can be resolved by adding the group name before the function name separated with a dot, e.g. HAS_RUN("Memory Tests.IC5.Test").

Example

!HAS_RUN("IC5.Test") ||? RESULTOF("IC5.Test") > 1