ForceStartTesting Method

Starts running the specified TestFunction ignoring any conditions attached to the test or its test group. The XJEase function is run asynchronously, i.e. control returns immediately from this method and the XJEase code continues to run on a separate thread.

Type: Runner

Namespace: XJTAG.Integration.XJRunner

Syntax

public void ForceStartTesting(TestFunction testFunction)

Parameters

testFunction

Type: TestFunction

The XJEase test function to start.

Exceptions

RuntimeException

There was an error running the XJEase code.

System.ObjectDisposedException

The Runner has already been disposed.

Remarks

The XJEase code is run on a separate thread and the calling application is notified of its progress via the FunctionFinished, TestingFinished and TextOutputGenerated events.

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.

The WaitForCompletion method must be called or the WaitForCompletion method must be called and return successfully before attempting to start running any other function. The StopTesting method can be called to abort any tests that are running asynchronously.