TestSuite is a composite implementation of Test.
A TestSuite is a collection of Tests. A TestSuite
does not contain any executable code but it may contain different Tests
that can be added with addTest.
In contrast to TestCase the TestSuite has no external
TestRunner. TestSuite is its own implementation of
TestRunner.
new TestSuite()static public function blockCollecting(Void):Boolean
Blocks the collection of
.
true to block the collection
public function addProcess(p:Process):Void
Adds a process to the TestSuite.
TestSuite does only allow TestRunner as sub processes.
Overrides the implementation in BatchProcess.addProcess.
p | Process to be added to the TestSuite
|
| IllegalArgumentException | if the passed-in p contains this
instance as child.
|
addProcess() in org.as2lib.app.exec.Batch
public function addTest(test:Test):Void
Adds a Test to the TestSuite.
test | Test to be added
|
| IllegalArgumentException | if the passed-in Test contains this
instance as child.
|
public function getName(Void):String
Returns the name of the TestSuite.
name of the TestSuite.
public function run(Void):TestRunner
Runs the TestSuite.
TestRunner that run this test
run() in org.as2lib.test.unit.Test
public function getTestRunner(Void):TestRunner
Returns the TestRunner that executes this TestSuite.
TestRunner that executes this TestSuite
public function getTests(Void):TypedArray
Returns all Tests contained within this TestSuite.
TypedArray that contains all Tests of this TestSuite.
public function onProcessError(process:Process, error):BooleanEvent handling for a error during a proces.
process | Process that throws the error
|
false to stop further execution
onProcessError() in org.as2lib.app.exec.ProcessErrorListener
public function getTestResult(Void):TestResult
Returns the TestResult to the TestSuite.
The returned TestResult may not be complete. This is the case
if the test has not been executed or has not finished yet.
TestResult for the TestSuite that contains all informations
public function getCurrentTestCase(Void):TestCaseResult
Returns the current executing TestCaseResult.
It is necessary to get the TestCaseResult for the TestCase
that just gets executed because there can be more than one TestCase
available within a TestResult.
TestResult to the current executing TestCase
public function getCurrentTestCaseMethodInfo(Void):TestCaseMethodInfo
Returns the current executing TestCaseMethodInfo.
It is necessary to get the TestCaseMethodInfo for the method
that just gets executed because there can be more than one methods available
within a TestCaseResult.
informations about the current executing method
getCurrentTestCaseMethodInfo() in org.as2lib.test.unit.TestRunner