Interface org.as2lib.test.speed.TestSuiteResult

org.as2lib.core.BasicInterface
   +--org.as2lib.test.speed.TestResult
      +--org.as2lib.test.speed.TestSuiteResult

Description

TestSuiteResult holds the result of a test suite's execution.

Method Index

getAllMethodInvocations(), getAverageTime(), getMethodInvocationCount(), getMethodInvocationPercentage(), getTestResultCount(), getTestResults(), hasMethodInvocations(), hasTestResults(), sort()

Inherited from TestResult

getName(), getTime(), getTimePercentage()

Inherited from BasicInterface

toString()

Method Detail

getAverageTime

public function getAverageTime(Void):Number

Returns the time needed per method invocation.

Return

the time needed per method invocation

getAllMethodInvocations

public function getAllMethodInvocations(Void):Array

Returns all profiled method invocations as MethodInvocation instances.

Return

all profiled method invocations as MethodInvocation instances

hasMethodInvocations

public function hasMethodInvocations(Void):Boolean

Returns whether this result has any method invocations.

Return

true if this result has method invocations else false

getMethodInvocationCount

public function getMethodInvocationCount(Void):Number

Returns the total number of method invocations.

Return

the total number of method invocations

getMethodInvocationPercentage

public function getMethodInvocationPercentage(totalMethodInvocationCount:Number):Number

Returns the percentage of method invocations in relation to the passed-in totalMethodInvocationCount.

Parameters

totalMethodInvocationCountthe total number of method invocations to calculate the percentage with

Return

the percentage of method invocations of this result

getTestResults

public function getTestResults(Void):Array

Returns all test results as TestResult instances directly of this test suite.

Return

all test results of this test suite

hasTestResults

public function hasTestResults(Void):Boolean

Returns whether this test suite result has sub-test results.

Return

true if this test suite has sub-test results else false

getTestResultCount

public function getTestResultCount(Void):Number

Returns the number of sub-test results.

Return

the number of sub-test results

sort

public function sort(property:Number, descending:Boolean):Void

Sorts this test suite result and its sub-test results.

Parameters

propertythe property to sort by
descendingdetermines whether to sort descending true or ascending false