TestResult
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.
public function TestSuiteResult(testSuite:TestSuite)
Constructs a new TestSuiteResult
.
testSuite | related TestSuite
|
public function addTest(test:TestResult):Void
Adds a TestResult
to the TestSuiteResult
.
test | TestResult to be added
|
public function getTests(Void):TypedArray
Returns all contained in the
TestSuite
.
list of all TestResult
s
public function getPercentage(Void):Number
Returns the percentage ( 0
- 100
) of the added Test
s.
percentage of execution
public function hasFinished(Void):Boolean
Returns true
if the TestSuite
has been finished.
true
if the TestSuite
has been finished
public function hasStarted(Void):Boolean
Returns true
if the TestSuite
has been started.
true
if the TestSuite
has been started
public function getTestResults(Void):TypedArray
Returns all TestResult
s for the Test
s contained
within the related TestSuite
.
Since its possible to add more than one Test
to a TestSuite
its necessary to get the TestResult
s to all added Test
s.
It flattens out all TestResults
, this means it concats all
getTestResults
of every added Test
.
all TestResult
s to all contained Test
s
public function getTestCaseResults(Void):TypedArray
Returns all TestCaseResult
s for the TestCase
s contained
within the related Test
.
Since its possible to add more than one Test
to a TestSuite
its necessary to get the TestResult
s to all added Test
s.
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
.
all TestResult
s to all contained Test
s
public function getName(Void):String
Retuns the name of the TestSuite
.
name of the TestSuite
public function getOperationTime(Void):Time
Returns the total operation time for all methods executed for the
related TestSuite
.
total operation time of the Test
public function hasErrors(Void):Boolean
Returns true
if the errors occured during the execution of the
related Test
.
true
if the errors occured during the execution of the
related Test
.
public function getTestSuite(Void):TestSuite
Returns the related .
related TestSuite
public function toString():String
Extended .toString implementation.
TestSuiteResult
as well formated String
toString() in org.as2lib.core.BasicInterface