Post-Testing Function

The Post-testing function is run once after all test functions have been run. The selected function must be a GLOBAL function (see Function Scopes), with two input arguments and no outputs.

It is possible to configure the function to run before or after the log file is written out, allowing the function to act upon the final log file using the LOG_FILE_PATH and FORMATTED_LOG_FILE_PATH built-in variables.

Syntax

PostTesting( INT stopMode, INT failureCount )()

Parameters

stopMode

Indicates how the tests terminated overall. The available values are as follows and are also defined as constants in the default Globals.xje file that is added to new projects by XJDeveloper.

Value Standard Globals.xje constant Meaning
0x0 FUNCTIONTERMINATION_RETURNED The selected tests completed normally (although some tests may have failed)
0x10 FUNCTIONTERMINATION_EXIT The tests were stopped via the EXIT statement
0x11 FUNCTIONTERMINATION_ABORTED The user stopped execution (typically via the stop button in XJRunner)
failureCount

Indicates how many test functions failed.