GetRunner Method (XJLink, XjtagOutputBox)

Gets a Runner object for the specified XJLink, displaying test output in an XjtagOutputBox.

Type: RunnerProject

Namespace: XJTAG.Integration.XJRunner

Syntax

public Runner GetRunner(XJLink xjlink, XjtagOutputBox testOutputBox)

Parameters

xjlink

Type: XJLink

The XJLink to use to run the tests.

testOutputBox

Type: XjtagOutputBox

The XjtagOutputBox in which to display test output.

Return Value

Runner

A Runner instance for this project.

Exceptions

System.InvalidOperationException

The specified XJLink is in use with another Runner instance.

ProjectException

No suitable licence is available to allow the project to be run.

RuntimeException

There was an error creating the Runner object.

System.ObjectDisposedException

The RunnerProject has already been disposed.

Remarks

This overload of GetRunner uses the provided XjtagOutputBox control to display test output as it is generated by the resulting Runner instance. The TextOutputGenerated event and the OutputFromLastTestRun property can still be used as well.