Class org.as2lib.test.unit.XmlSocketResultPrinter

Implemented Interfaces

IResultPrinter ITestListener

Description

XmlSocketResultPrinter writes-out received test execution information with the xml socket.

This result printer is intended to be used with the Unit Test Task.

Method Index

new XmlSocketResultPrinter()
addError(), addFailure(), endTest(), printResult(), startTest(), trace()

Constructor Detail

XmlSocketResultPrinter

public function XmlSocketResultPrinter(host:String, port:Number)

Constructs a new XmlSocketResultPrinter instance.

If host is not specified, "localhost" is used. If port is not specified, 3212 is used.

Parameters

hostthe host of the connection to open
portthe port of the connection to open

Method Detail

trace

public function trace():Void

startTest

public function startTest(test:Test):Void

addError

public function addError(test:Test, e:Error):Void

addFailure

public function addFailure(test:Test, e:AssertionFailedError):Void

endTest

public function endTest(test:Test):Void

printResult

public function printResult(result:TestResult, runTime:Number):Void