TestResult
TestCaseResult
contains all informations about the execution of a TestCase
.
TestCaseRunner contains all states of execution of the TestCase
and TestCaseResult
contains all informations about the execution.
public function TestCaseResult(testCase:TestCase)
Constructs a new TestCaseResult
.
testCase | related to the informations |
public function getMethodInfos(Void):TypedArray
Returns all informations in a list about the methods contained within the
TestCase
.
All methods get wrapped within TestCaseMethodInfo
s. Only methods
that start with "test" are contained within this list.
list of all methods contained within the related TestCase
public function getTestCase(Void):TestCase
Returns the related TestCase
.
instance of the related TestCase
public function getName(Void):String
Returns the class name of the related TestCase
.
class name of the related TestCase.
public function getTestResults(Void):TypedArray
Implementation of @see TestResult#getTestResults.
This TestCaseResult in a new list for Results.
public function getTestCaseResults(Void):TypedArray
Returns all result to the TestCase results. Implementation of @see TestResult#getTestCaseResults.
The Testcase in a list of TestCaseResults.
public function getPercentage(Void):Number
Returns the percentage ( 0
- 100
) of the executed methods.
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 getOperationTime(Void):Time
Returns the total operation time for all methods executed for the TestCase
.
total operation time of the TestCase
public function hasErrors(Void):Boolean
Returns true
if the errors occured during the execution of TestCase
.
true
if the errors occured during the execution of TestCase
.
public function toString():String
Extended .toString implementation.
TestCaseResult
as well formated String
toString() in org.as2lib.core.BasicInterface