StartTesting Method (TestCollection)

Starts running the specified TestCollection. The XJEase functions are 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 StartTesting(TestCollection testList)

Parameters

testList

Type: TestCollection

The collection of tests 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 and post-testing function, if defined, will both 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.