| Package | asunit.textui |
| Class | public class FlexRunner |
| Inheritance | FlexRunner mx.core.Application |
FlexTestRunner should be the base class for your
test harness if you're testing a project that uses Flex components.
| Property | Defined by | ||
|---|---|---|---|
| runner : TestRunner | FlexRunner | ||
| Method | Defined by | ||
|---|---|---|---|
|
start(testCase:Class, testMethod:String = null, showTrace:Boolean = false):TestResult
| FlexRunner | ||
| Method | Defined by | ||
|---|---|---|---|
|
createChildren():void
| FlexRunner | ||
| runner | property |
protected var runner:TestRunner
| 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) |
TestResult |
<?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>