Class org.as2lib.test.unit.TestSuiteResult

Implemented Interfaces

TestResult

Description

TestSuiteResult contains all informations about the execution of a TestSuite.

TestSuite contains all states of execution of the TestSuite and TestSuiteResult contains all informations about the execution.

See Also

Method Index

new TestSuiteResult()
addTest(), getName(), getOperationTime(), getPercentage(), getTestCaseResults(), getTestResults(), getTests(), getTestSuite(), hasErrors(), hasFinished(), hasStarted(), toString()

Constructor Detail

TestSuiteResult

public function TestSuiteResult(testSuite:TestSuite)

Constructs a new TestSuiteResult.

Parameters

testSuiterelated TestSuite

Method Detail

addTest

public function addTest(test:TestResult):Void

Adds a TestResult to the TestSuiteResult.

Parameters

test TestResult to be added

getTests

public function getTests(Void):TypedArray

Returns all contained in the TestSuite.

Return

list of all TestResults

getPercentage

public function getPercentage(Void):Number

Returns the percentage ( 0- 100) of the added Tests.

Return

percentage of execution

Specified By

getPercentage() in org.as2lib.test.unit.TestResult

hasFinished

public function hasFinished(Void):Boolean

Returns true if the TestSuite has been finished.

Return

true if the TestSuite has been finished

Specified By

hasFinished() in org.as2lib.test.unit.TestResult

hasStarted

public function hasStarted(Void):Boolean

Returns true if the TestSuite has been started.

Return

true if the TestSuite has been started

Specified By

hasStarted() in org.as2lib.test.unit.TestResult

getTestResults

public function getTestResults(Void):TypedArray

Returns all TestResults for the Tests contained within the related TestSuite.

Since its possible to add more than one Test to a TestSuite its necessary to get the TestResults to all added Tests.

It flattens out all TestResults, this means it concats all getTestResults of every added Test.

Return

all TestResults to all contained Tests

Specified By

getTestResults() in org.as2lib.test.unit.TestResult

getTestCaseResults

public function getTestCaseResults(Void):TypedArray

Returns all TestCaseResults for the TestCases contained within the related Test.

Since its possible to add more than one Test to a TestSuite its necessary to get the TestResults to all added Tests.

TestCase represents the lowest level of Test therefor its important to get all added TestCaseResults seperatly.

It flattens out all TestResults, this means it concats all getTestCaseResults of every added Test.

Return

all TestResults to all contained Tests

Specified By

getTestCaseResults() in org.as2lib.test.unit.TestResult

getName

public function getName(Void):String

Retuns the name of the TestSuite.

Return

name of the TestSuite

Specified By

getName() in org.as2lib.test.unit.TestResult

getOperationTime

public function getOperationTime(Void):Time

Returns the total operation time for all methods executed for the related TestSuite.

Return

total operation time of the Test

Specified By

getOperationTime() in org.as2lib.test.unit.TestResult

hasErrors

public function hasErrors(Void):Boolean

Returns true if the errors occured during the execution of the related Test.

Return

true if the errors occured during the execution of the related Test.

Specified By

hasErrors() in org.as2lib.test.unit.TestResult

getTestSuite

public function getTestSuite(Void):TestSuite

Returns the related .

Return

related TestSuite

toString

public function toString():String

Extended .toString implementation.

Return

TestSuiteResult as well formated String

Specified By

toString() in org.as2lib.core.BasicInterface

Overrides

toString() in org.as2lib.core.BasicClass