org.as2lib.core.BasicClass +--org.as2lib.test.speed.AbstractTestResult +--org.as2lib.test.speed.AbstractTestSuiteResult
AbstractTestSuiteResult
provides implementations of methods needed by
implementations of the TestSuiteResult interface.
static public NAME:Number
static public TIME:Number
static public AVERAGE_TIME:Number
static public TIME_PERCENTAGE:Number
static public METHOD_INVOCATION_COUNT:Number
static public METHOD_INVOCATION_PERCENTAGE:Number
static public METHOD_INVOCATION_SUCCESSION:Number
public function getAverageTime(Void):Number
Returns the time needed per method invocation.
the time needed per method invocation
public function getAllMethodInvocations(Void):Array
Returns all profiled method invocations as MethodInvocation instances.
all profiled method invocations as MethodInvocation
instances
public function hasMethodInvocations(Void):Boolean
Returns whether this test suite result has any method invocations.
true
if this test suite result has method invocations else
false
public function getMethodInvocationCount(Void):Number
Returns the total number of method invocations.
the total number of method invocations
public function getMethodInvocationPercentage(totalMethodInvocationCount:Number):Number
Returns the percentage of method invocations in relation to the passed-in
totalMethodInvocationCount
.
totalMethodInvocationCount | the total number of method invocations to calculate the percentage with |
the percentage of method invocations of this result
public function getTestResults(Void):Array
Returns all test results as TestResult instances directly of this test suite.
all test results of this test suite
public function hasTestResults(Void):Boolean
Returns whether this test suite result has sub-test results.
true
if this test suite has sub-test results else false
public function getTestResultCount(Void):Number
Returns the number of direct sub-test results.
the number of direct sub-test results
public function addTestResult(testResult:TestResult):Void
Adds a new sub-test result.
If testResult
is null
or undefined
it wll be
ignored, this means not added.
testResult | the new test result to add |
public function sort(property:Number, descending:Boolean):Void
Sorts this test suite result and its sub-test results.
Supported sort properties are:
property | the property to sort by |
descending | determines whether to sort descending true or
ascending false
|