Access keys

TestResult

Kind of class: interface
Inherits from: BasicInterface
Implemented by:
Version: 1.0
Author: Martin Heidegger
Classpath: org.as2lib.test.unit.TestResult
File last modified: Wednesday, 21 September 2005, 18:37:06
TestResult represents the infromations that got collected during the
execution of a related Test.

A Test should not contain the informations about its execution.
TestResult represents the pool of all informations collected during
the execution of the Test by its TestRunner.

Every TestResult depends to the state of the execution of the
related Test. Different informations changed during the execution.

See also:

Instance methods

getName

function getName (
Void) : String
Returns the name of the TestResult.
Returns:
name of the TestResult

getOperationTime

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

getPercentage

function getPercentage (
Void) : Number
Returns the percentage (0-100) of the execution.
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 Test.

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

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.

hasFinished

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

hasStarted

function hasStarted (
Void) : Boolean
Returns true if the TestCase has been started.
Returns:
true if the TestCase has been started