RunTest Method

Runs the specified TestFunction. The XJEase function is run synchronously i.e. control does not return from this method until the function has completed.

Type: Runner

Namespace: XJTAG.Integration.XJRunner

Syntax

public uint RunTest(TestFunction testFunction)

Parameters

testFunction

Type: TestFunction

The XJEase TestFunction to run.

Return Value

uint

The result of the XJEase TestFunction, or 1 if a problem occurred during testing.

Exceptions

RuntimeException

There was an error running the XJEase code.

System.ObjectDisposedException

The Runner has already been disposed.

Remarks

If a Condition is defined in the XJRunner Test List for the specified test then it will always be evaluated and the test will only be executed if the condition evaluates to TRUE or has been overridden to return TRUE.

The post-function, if defined, will be run after the TestFunction has run, but the post-testing function will not be run.

If logging is enabled in the project, then the log file will be written to.