Interface org.as2lib.test.unit.TestResult

org.as2lib.core.BasicInterface
   +--org.as2lib.test.unit.TestResult

Description

Basic Interface for all Results produced by the run a Test. The seperation between Test and this Interface is to control Tests. Its a contains a extended API that a Test should not include. (For useability reasons)

Method Index

getName(), getOperationTime(), getPercentage(), getTestCaseResults(), getTestResults(), hasErrors(), hasFinished(), hasStarted()

Inherited from BasicInterface

toString()

Method Detail

getPercentage

public function getPercentage(Void):Number

Getter for the percentage of the current running Test

Return

Percent of the executed Test.

hasFinished

public function hasFinished(Void):Boolean

Return

True if the Test has finished.

hasStarted

public function hasStarted(Void):Boolean

Return

True if the Test has started.

getName

public function getName(Void):String

Getter for the name of the test.

Return

Name of the Test.

getOperationTime

public function getOperationTime(Void):Number

Getter for the opertation time of the test.

Return

Operationtime of the Test.

hasErrors

public function hasErrors(Void):Boolean

Return

true if the Test containes errors.

getTestResults

public function getTestResults(Void):TypedArray

Getter for all testresults.

Return

All testresults.

getTestCaseResults

public function getTestCaseResults(Void):TypedArray

Getter for all TestCaseResults. Testcases get handled different (because they are a Leaf).