TestCaseRunner
is the implementation for the execution of TestCases.
It executes and handles all operations to process the certain TestCase
.
Usually you do not get in touch with the TestCaseRunner
because any
TestCase
handles it automatically.
As its a implementation of TestRunner it is possible to add any
org.as2lib.app.exec.ProcessListener as listener to the execution of
the TestCaseRunner
.
new TestCaseRunner()
function TestCaseRunner(testCase:TestCase)
Constructs a new TestCaseRunner
.
testCase | TestCase that should be executed.
|
public function getTestResult(Void):TestResult
Returns the TestCaseResult
to the executed TestCase
.
The result contains all informations about the connected TestCase
.
Since it is available even if the TestCaseRunner
has not been started
or finished the execution it is possible that the result is not complete at
the request. But it contains all informations about the methods that will
be executed.
TestResult for the TestCase
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
.
TestCaseResult
related to the 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
public function addInfo(info:ExecutionInfo):Void
Adds a information about the current executing method.
info | ExecutionInfo to be added
|
public function nextStep(Void):Void
public function getPercentage(Void):Number
Returns the percentage of execution of the TestCase
.
getPercentage() in org.as2lib.app.exec.Process