Packageasunit.textui
Classpublic class FlexRunner
InheritanceFlexRunner Inheritance mx.core.Application

The FlexTestRunner should be the base class for your test harness if you're testing a project that uses Flex components.

View the examples.



Protected Properties
 PropertyDefined by
  runner : TestRunner
FlexRunner
Public Methods
 MethodDefined by
  
start(testCase:Class, testMethod:String = null, showTrace:Boolean = false):TestResult
FlexRunner
Protected Methods
 MethodDefined by
  
FlexRunner
Property detail
runnerproperty
protected var runner:TestRunner
Method detail
createChildren()method
protected override function createChildren():void
start()method 
public function start(testCase:Class, testMethod:String = null, showTrace:Boolean = false):TestResultParameters
testCase:Class
 
testMethod:String (default = null)
 
showTrace:Boolean (default = false)

Returns
TestResult
Examples
FlexRunnerExample
<?xml version="1.0" encoding="utf-8"?>
<FlexRunner 
    xmlns="asunit.textui.*" 
    xmlns:mx="http://www.adobe.com/2006/mxml" 
    creationComplete="runTests()"
    >
    <!-- Import Application Styles -->
    <mx:Style source="MyProjectSkin.css" />
    <mx:Script>
        <![CDATA[
            import asunit.textui.TestRunner;

            public function runTests():void {

                // start(clazz:Class, methodName:String, showTrace:Boolean)
                // NOTE: sending a particular class and method name will
                // execute setUp(), the method and NOT tearDown.
                // This allows you to get visual confirmation while developing
                // visual entities
                start(AllTests, null, TestRunner.SHOW_TRACE);
            }
        ]]>
    </mx:Script>
</FlexRunner>