13 Replies Latest reply: Nov 28, 2010 6:13 PM by PhantomGAD RSS

    <flexunit:TestRunnerBase >problem

    ursaditya

      This is the  code I have written for testing in flexcover

      ------------------------------------------------------------------------------

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
          xmlns:flexunit="http://www.adobe.com/2009/flexUnitUIRunner"
         
                     
                      creationComplete="runMe()" >

       

          <mx:Script>
              <![CDATA[
                  import mouli.UIListener;
           import myComponents.Greeter;         
          
           import org.flexunit.runner.FlexUnitCore;
           import org.flexunit.listeners.UIListener;
           //import flexunit.runner.BaseTestRunner;
           //import flexunit.flexui.TestRunnerBase;
           //import com.adobe.cairngorm.control.FrontController;
           private var core:FlexUnitCore;

       

           public function runMe():void {
                core = new FlexUnitCore();
                core.addListener(new UIListener(uiListener));
                core.run( myComponents.Greeter );
           }
              ]]>
          </mx:Script>
         
      <flexunit:BaseTestRunner id="uiListener" width="100%" height="100%" />
      </mx:Application>

       

      ---------------------------------------------------------------------------------

      And the error is at  line 26 .. and it is like this

       

      Could not resolve  <flexunit:TestRunnerBase> to a component implementation.         TestFlexcover/src           TestProject.mxml            line 26   1268801906106  25

       

      i am breaking my head on this please help me