AbstractTestSuiteResult provides implementations of methods needed by
implementations of the TestSuiteResult interface.
static public NAME:Numberstatic public TIME:Numberstatic public AVERAGE_TIME:Numberstatic public TIME_PERCENTAGE:Numberstatic public METHOD_INVOCATION_COUNT:Numberstatic public METHOD_INVOCATION_PERCENTAGE:Numberstatic public METHOD_INVOCATION_SUCCESSION:Numberpublic function getAverageTime(Void):NumberReturns the time needed per method invocation.
the time needed per method invocation
public function getAllMethodInvocations(Void):ArrayReturns all profiled method invocations as MethodInvocation instances.
all profiled method invocations as MethodInvocation instances
public function hasMethodInvocations(Void):BooleanReturns whether this test suite result has any method invocations.
true if this test suite result has method invocations else
false
public function getMethodInvocationCount(Void):NumberReturns 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):ArrayReturns all test results as TestResult instances directly of this test suite.
all test results of this test suite
public function hasTestResults(Void):BooleanReturns whether this test suite result has sub-test results.
true if this test suite has sub-test results else false
public function getTestResultCount(Void):NumberReturns the number of direct sub-test results.
the number of direct sub-test results
public function addTestResult(testResult:TestResult):VoidAdds 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):VoidSorts 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
|