Skip to main content
November 17, 2010
Question

TestRunnerBase compile error FX3 FU4

  • November 17, 2010
  • 1 reply
  • 4378 views

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.

This topic has been closed for replies.

1 reply

Participating Frequently
November 18, 2010

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

November 18, 2010

Mike,

Thanks for the response.

I must have missed the step that said to include the .swc in the build path.  I have it in my project/libs folder and have updated the build path to have that folder.  The specific .swc I am using is flexunit-4.0.0.swc.  Do I need another?

When I include other .swc files in the libs directory (e.g., flexunit-uilistener-4.0.0.swc), I get other compile errors.  When I have only flexunit-4.0.0.swc, I get the compile error noted in my original posting.

I looked at that web site (and a host of others) and have not been able to resolve my compile error.

Please advise.

Roy P.

Participating Frequently
November 18, 2010

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