Skip navigation
Roy.P.
Currently Being Moderated

TestRunnerBase compile error FX3 FU4

Nov 17, 2010 3:52 PM

I am getting a compile error.
Using FlexBuilder3 (3.4.1 SDK).
FlexUnit 4
I have the 5 swc files in my project's lib folder.

Here is my code:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
                        xmlns:adobe="http://www.adobe.com/2009/flexUnitUIRunner"
                        layout="absolute" creationComplete="init()">
    <mx:Script>
        <![CDATA[
            import flexUnitTests.TestSuite;
            import org.flexunit.runner.FlexUnitCore;
            import org.flexunit.listeners.UIListener;

            private var core:FlexUnitCore;
           
            public function init():void {
                core = new FlexUnitCore();
                core.addListener(new UIListener(uiListener));
                core.run(TestSuite.ampTestSuite);
            }

        ]]>
    </mx:Script>
    <adobe:TestRunnerBase id="uiListener" width="100%" height="100%"  />
</mx:WindowedApplication>


This is the error:  Could not resolve <adobe:TestRunnerBase> to a component implementation.

(this question was also posted on an existing thread)

Please advise.
Roy P.

 
Replies
  • Currently Being Moderated
    Nov 17, 2010 4:35 PM   in reply to Roy.P.

    Which swc files do you have in your build path?

     

    Also, make sure you take a look at this:

     

    https://flexunit.tenderapp.com/faqs/known-issues/uilistener-not-found- testrunnerbase-errors-and-other-resource-issues

     

    Mike

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 18, 2010 8:51 AM   in reply to Roy.P.

    Roy:

     

    First thing to check. Since you are using the 3.x SDK, are you using a 3.x version of FlexUnit ore one built for 4.

     

    If you want to double check, you can download the latest 3.5 (which will work fine with 3.4 as well) build from here.

     

    http://www.flexunit.org/?page_id=14

     

    I would consider getting rid of the libraries you have, puting these in place so we know we have a clean starting point and then I can help more.

     

    Mike

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 19, 2010 9:17 AM   in reply to Roy.P.

    Roy:

     

    Flexunit is an open source project maintained entirely by volunteers, so feel free to add anything you would like about setting this up in FlexBuilder here:

    http://docs.flexunit.org/index.php?title=Setting_up_a_FlexUnit_4_Proje ct

     

    Mike

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points