Packageorg.flexunit.runner
Classpublic class Result
InheritanceResult Inheritance Object

A Result collects and summarizes information from running multiple tests. Since tests are expected to run correctly, successful tests are only noted in the count of tests that ran.



Public Properties
 PropertyDefined By
  failureCount : int
[read-only] Returns the number of tests that failed over the course of the run.
Result
  failures : Array
[read-only] Returns the Failures describing tests that failed and the problems they encountered.
Result
  ignoreCount : int
[read-only] Returns the number of tests ignored over the course of the run.
Result
  runCount : int
[read-only] Returns the number of tests that have run.
Result
  runTime : Number
[read-only] Returns the number of milliseconds it took to run the entire set of tests.
Result
  successful : Boolean
[read-only] Returns a Boolean value of true if all tests succeeded.
Result
Public Methods
 MethodDefined By
  
Constructor.
Result
  
Internal use only.
Result
Property Detail
_ignoreCountproperty
classInternal var _ignoreCount:int = 0

The number of tests ignored.

_runCountproperty 
classInternal var _runCount:int = 0

The number of tests run.

_runTimeproperty 
classInternal var _runTime:Number = 0

The number of milliseconds it took to run the entire set of tests.

_startTimeproperty 
classInternal var _startTime:Number

The time when the test run started.

failureCountproperty 
failureCount:int  [read-only]

Returns the number of tests that failed over the course of the run.


Implementation
    public function get failureCount():int
failuresproperty 
failures:Array  [read-only]

Returns the Failures describing tests that failed and the problems they encountered.


Implementation
    public function get failures():Array
ignoreCountproperty 
ignoreCount:int  [read-only]

Returns the number of tests ignored over the course of the run.


Implementation
    public function get ignoreCount():int
runCountproperty 
runCount:int  [read-only]

Returns the number of tests that have run.


Implementation
    public function get runCount():int
runTimeproperty 
runTime:Number  [read-only]

Returns the number of milliseconds it took to run the entire set of tests.


Implementation
    public function get runTime():Number
successfulproperty 
successful:Boolean  [read-only]

Returns a Boolean value of true if all tests succeeded.


Implementation
    public function get successful():Boolean
Constructor Detail
Result()Constructor
public function Result()

Constructor.

Method Detail
createListener()method
public function createListener():RunListener

Internal use only.

Returns
RunListener