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:
Summary
Constructor
Instance methods
- addTest
- getTests
- getPercentage
- hasFinished
- hasStarted
- getTestResults
- getTestCaseResults
- getName
- getOperationTime
- hasErrors
- getTestSuite
- toString
Instance methods inherited from BasicClass
Constructor
TestSuiteResult
function TestSuiteResult (
testSuite:TestSuite)
Constructs a new
TestSuiteResult.Parameters:
testSuite:
related
TestSuiteInstance methods
addTest
function addTest (
test:TestResult) : Void
Adds a
TestResult to the TestSuiteResult.Parameters:
test:
TestResult to be addedgetName
function getName (
Void) : String
Retuns the name of the
TestSuite.Returns:
name of the
TestSuiteSpecified by:
getOperationTime
function getOperationTime (
Void) : Time
Returns the total operation time for all methods executed for the
related
related
TestSuite.Returns:
total operation time of the
TestSpecified by:
getPercentage
function getPercentage (
Void) : Number
Returns the percentage (
0-100) of the added Tests.Returns:
percentage of execution
Specified by:
getTestCaseResults
function getTestCaseResults (
Void) : TypedArray
Returns all
within the related
TestCaseResults for the TestCases containedwithin 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 TestsSpecified by:
getTestResults
function getTestResults (
Void) : TypedArray
Returns all
within the related
TestResults for the Tests containedwithin 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 TestsSpecified by:
getTests
function getTests (
Void) : TypedArray
Returns all
TestResult) in a {@link TypedArray contained in theTestSuite.Returns:
list of all
TestResultsgetTestSuite
function getTestSuite (
Void) : TestSuite
Returns the related {@coee TestSuite}.
Returns:
related
TestSuitehasErrors
function hasErrors (
Void) : Boolean
Returns
related
true if the errors occured during the execution of therelated
Test.Returns:
related
true if the errors occured during the execution of therelated
Test.Specified by:
hasFinished
function hasFinished (
Void) : Boolean
Returns
true if the TestSuite has been finished.Returns:
true if the TestSuite has been finishedSpecified by:
hasStarted
function hasStarted (
Void) : Boolean
Returns
true if the TestSuite has been started.Returns:
true if the TestSuite has been startedSpecified by:
toString
function toString (
) : String
Extended .toString implementation.
Returns:
TestSuiteResult as well formated StringOverrides:
Specified by: