3 Replies Latest reply: Jan 5, 2011 8:50 AM by Michael Labriola RSS

    Multiple Tests with same class name but different packages

    jefflage Community Member

      this doesn't seem to work in FU 4.1RC1.

       

      here is a code snippet from the TestRunner.mxml app that is produced:

       

       

      import Pages.Company.Filter.TrayPresenterTest;

      import Pages.Transaction.Filter.TrayPresenterTest;

       

               public function runTests() : void {

                  var core : FlexUnitCore = new FlexUnitCore();

                  core.addListener(new CIListener());

       

      var request:Request = Request.qualifyClasses.apply(

      null,

      [TrayPresenterTest,TrayPresenterTest]

      );

                  core.run(request);

               }

       

      i get the following error:

       

      /Users/jlage/Development/workspace/hmcp/build/TestRunner.mxml: Error: Can not resolve a multiname reference unambiguously. Pages.Company.Filter:TrayPresenterTest (from /Users/jlage/Development/workspace/hmcp/src/test/flex/Pages/Company/Filter/TrayPresenterT est.as) and Pages.Transaction.Filter:TrayPresenterTest (from /Users/jlage/Development/workspace/hmcp/src/test/flex/Pages/Transaction/Filter/TrayPresen terTest.as) are available.

       

       

      is there a way to force the generated app to use the fully qualified class name?  or do they have to be globally unique?