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 TestResults
public function getPercentage(Void):Number
Returns the percentage ( 0- 100) of the added Tests.
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 TestResults for the Tests contained
within 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.
all TestResults to all contained Tests
public function getTestCaseResults(Void):TypedArray
Returns all TestCaseResults for the TestCases contained
within 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.
all TestResults to all contained Tests
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):TestSuiteReturns the related .
related TestSuite
public function toString():StringExtended .toString implementation.
TestSuiteResult as well formated String
toString() in org.as2lib.core.BasicInterface