org.as2lib.core.BasicClass +--org.as2lib.test.unit.TestCaseResult
TestResult
Wrapper for a TestCase that contains a API to all Informations to the execution of the Testcase.
new TestCaseResult()
public function TestCaseResult(testCase:TestCase, testRunner:TestRunner)
Constructs a new TestCaseResult.
testCase | TestCase to wrap. |
testRunner | TestRunner that initialized the TestCaseResult. |
public function getMethodInfos(Void):TypedArray
Getter for all Informations about the methods contained within the TestCase. Test method get recognized by the pattern: "test*"
List of all methods contained within this TestCase.
public function getTestRunner(Void):TestRunner
Getter for the Testrunner that executed the TestCase.
Testrunner that executed the TestCase.
public function getTestCase(Void):TestCase
Getter for the wrapped TestCase.
Wrapped TestCase.
public function getName(Void):String
Getter for the name of the TestCase.
name of the TestCase.
public function getTestResults(Void):TypedArray
Implementation of @see TestResult#getTestResults.
This TestCaseResult in a new list for Results.
public function getPercentage(Void):Number
Getter for the total percentage of the execution.
Percentage of execution.
public function hasFinished(Void):Boolean
true if the TestCase has been finished.
public function hasStarted(Void):Boolean
true if the TestCase has been started.
public function getOperationTime(Void):Number
Getter for the total operation time.
Total operation time in milliseconds.
public function getTestCaseResults(Void):TypedArray
Getter for all TestCase results. Implementation of @see TestResult#getTestCaseResults.
The Testcase in a list of TestCaseResults.
public function toString():String
Extended .toString implementation.
TestCaseResult as well formated String.
toString() in org.as2lib.core.BasicInterface