Access keys

TestSuiteResult

Kind of class: class
Inherits from: BasicClass
Implements:
Version: 1.0
Author: Martin Heidegger.
Classpath: org.as2lib.test.unit.TestSuiteResult
File last modified: Wednesday, 21 September 2005, 18:37:06
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:

Constructor

TestSuiteResult

function TestSuiteResult (
testSuite:TestSuite)
Constructs a new TestSuiteResult.
Parameters:
testSuite:
related TestSuite

Instance methods

addTest

function addTest (
test:TestResult) : Void
Adds a TestResult to the TestSuiteResult.
Parameters:
test:
TestResult to be added

getName

function getName (
Void) : String
Retuns the name of the TestSuite.
Returns:
name of the TestSuite
Specified by:

getOperationTime

function getOperationTime (
Void) : Time
Returns the total operation time for all methods executed for the
related TestSuite.
Returns:
total operation time of the Test

getPercentage

function getPercentage (
Void) : Number
Returns the percentage (0-100) of the added Tests.
Returns:
percentage of execution

getTestCaseResults

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.

Returns:
all TestResults to all contained Tests

getTestResults

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.

Returns:
all TestResults to all contained Tests

getTests

function getTests (
Void) : TypedArray
Returns all TestResult) in a {@link TypedArray contained in the
TestSuite.
Returns:
list of all TestResults

getTestSuite

function getTestSuite (
Void) : TestSuite
Returns the related {@coee TestSuite}.
Returns:
related TestSuite

hasErrors

function hasErrors (
Void) : Boolean
Returns true if the errors occured during the execution of the
related Test.
Returns:
true if the errors occured during the execution of the
related Test.
Specified by:

hasFinished

function hasFinished (
Void) : Boolean
Returns true if the TestSuite has been finished.
Returns:
true if the TestSuite has been finished

hasStarted

function hasStarted (
Void) : Boolean
Returns true if the TestSuite has been started.
Returns:
true if the TestSuite has been started
Specified by:

toString

function toString (
) : String
Extended .toString implementation.
Returns:
TestSuiteResult as well formated String