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.
public function getPercentage(Void):Number
Returns the percentage ( 0
- 100
) of the execution.
percentage of execution
public function hasFinished(Void):Boolean
Returns true
if the TestCase
has been finished.
true
if the TestCase
has been finished.
public function hasStarted(Void):Boolean
Returns true
if the TestCase
has been started.
true
if the TestCase
has been started
public function getName(Void):String
Returns the name of the TestResult
.
name of the TestResult
public function getOperationTime(Void):Time
Returns the total operation time for all methods executed for the
related Test
.
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 getTestResults(Void):TypedArray
Returns all TestResult
s for the Test
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.
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