Class org.as2lib.test.unit.TestCaseResult

Implemented Interfaces

TestResult

Description

TestCaseResult contains all informations about the execution of a TestCase.

TestCaseRunner contains all states of execution of the TestCase and TestCaseResult contains all informations about the execution.

See Also

Method Index

new TestCaseResult()
getMethodInfos(), getName(), getOperationTime(), getPercentage(), getTestCase(), getTestCaseResults(), getTestResults(), hasErrors(), hasFinished(), hasStarted(), toString()

Constructor Detail

TestCaseResult

public function TestCaseResult(testCase:TestCase)

Constructs a new TestCaseResult.

Parameters

testCaserelated to the informations

Method Detail

getMethodInfos

public function getMethodInfos(Void):TypedArray

Returns all informations in a list about the methods contained within the TestCase.

All methods get wrapped within TestCaseMethodInfos. Only methods that start with "test" are contained within this list.

Return

list of all methods contained within the related TestCase

getTestCase

public function getTestCase(Void):TestCase

Returns the related TestCase.

Return

instance of the related TestCase

getName

public function getName(Void):String

Returns the class name of the related TestCase.

Return

class name of the related TestCase.

Specified By

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

getTestResults

public function getTestResults(Void):TypedArray

Implementation of @see TestResult#getTestResults.

Return

This TestCaseResult in a new list for Results.

Specified By

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

getTestCaseResults

public function getTestCaseResults(Void):TypedArray

Returns all result to the TestCase results. Implementation of @see TestResult#getTestCaseResults.

Return

The Testcase in a list of TestCaseResults.

Specified By

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

getPercentage

public function getPercentage(Void):Number

Returns the percentage ( 0- 100) of the executed methods.

Return

percentage of execution

Specified By

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

hasFinished

public function hasFinished(Void):Boolean

Returns true if the TestCase has been finished.

Return

true if the TestCase has been finished

Specified By

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

hasStarted

public function hasStarted(Void):Boolean

Returns true if the TestCase has been started.

Return

true if the TestCase has been started

Specified By

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

getOperationTime

public function getOperationTime(Void):Time

Returns the total operation time for all methods executed for the TestCase.

Return

total operation time of the TestCase

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 TestCase.

Return

true if the errors occured during the execution of TestCase.

Specified By

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

toString

public function toString():String

Extended .toString implementation.

Return

TestCaseResult as well formated String

Specified By

toString() in org.as2lib.core.BasicInterface

Overrides

toString() in org.as2lib.core.BasicClass