Hi Chris,

OK, I didn’t fully grok what you were asking about until I saw the console
and re-read your original question.   One of the un-polished aspects of
Mustella is that there are some tests that fail when run in the full set
yet pass when run individually.  Our CI servers actually run two passes.
I also got one failure, then ran:

mini_run -failures

And it ran the one test and it passed.  See if that works for you.  I see
that it looks like one test is being run twice so that might be the issue.
 It could be that the second test should have a different name and never
worked since it tests fr_FR and the locale isn’t being included.  But on
the second pass it runs the first test again and we’ve never noticed.

If that’s the case, adding a .compile file should fix it.  Do you want to
try to make these changes?  I can try to find time to do it otherwise.

-Alex
 

On 12/11/14, 11:49 AM, "Chris Martin" <chrsm...@outlook.com> wrote:

>Alex,
> 
>Here ya go.  Thanks for helping me out with this.
> 
>CMartin@CMARTINDT ~/Documents/GitHub/flex-sdk/mustella (develop)
>$ ./mini_run.sh tests/resources/ResourceManager
>Skipping testcase check
>Doing a regular mini run
>Buildfile: c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\build.xml
> [loadfile] 
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\local.properties
> doesn't exist
>cleanswfs:
>clean:
>     [echo] Deleting old results and files from previous testsuite build.
>   [delete] Deleting directory
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustel
>la\tmp
>check-fonts:
>handle_adt_jar:
>prepare:
>     [echo] Preparing testsuite.
>prepare:
>     [echo] Creating build directory...
>compile-mustella:
>     [echo] Compiling mustella source code...
>    [javac] 
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\java\src\build.x
>ml:79: warning: 'includeantruntime' was not set, defaulting to
>build.sysclasspat
>h=last; set to false for repeatable builds
>echo-info:
>     [echo]     JAVA_HOME:               c:/Program Files/Java/jdk1.8.0_05
>     [echo]     FLASHPLAYER_DEBUGGER:
>C:\FlashPlayerContentDebugger\flashplay
>er.exe
>     [echo]     sdk.dir:
>C:\Users\cmartin\Documents\GitHub\flex-
>sdk
>     [echo]     mustella exclude file:
>c:/Users/cmartin/Documents/GitHub/flex-
>sdk/mustella/tests/ExcludeListWin.txt
>get_date:
>get_os:
>setup_mac:
>setup_windows:
>     [echo] doing windows setup
>     [echo] homepath: C:\Users\cmartin
>     [echo] trace output file: 1
>     [echo]  player is C:\FlashPlayerContentDebugger\flashplayer.exe
>setup_linux:
>db_time:
>    [mkdir] Created dir:
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\tmp
>     [echo] db_time=2014/12/11 12:47:52
>get_mobile_data:
>device_fail:
>handle_mobile_config:
>echo-browser:
>echo-apollo:
>setup:
>     [echo] player is C:\FlashPlayerContentDebugger\flashplayer.exe
>     [echo] fileset:
>resources\ResourceManager\Events\ResourceManager_Events.mxm
>l;resources\ResourceManager\Integration\ResourceManager_Integration_UIComp
>onent_
>resourcesChanged.mxml;resources\ResourceManager\Methods\ResourceManager_Me
>thods_
>addResourceBundle.mxml;resources\ResourceManager\Methods\ResourceManager_M
>ethods
>_findResourceBundleWithResource.mxml;resources\ResourceManager\Methods\Res
>ourceM
>anager_Methods_getBoolean.mxml;resources\ResourceManager\Methods\ResourceM
>anager
>_Methods_getBundleNamesForLocale.mxml;resources\ResourceManager\Methods\Re
>source
>Manager_Methods_getClass.mxml;resources\ResourceManager\Methods\ResourceMa
>nager_
>Methods_getInt.mxml;resources\ResourceManager\Methods\ResourceManager_Meth
>ods_ge
>tLocales.mxml;resources\ResourceManager\Methods\ResourceManager_Methods_ge
>tNumbe
>r.mxml;resources\ResourceManager\Methods\ResourceManager_Methods_getObject
>.mxml;
>resources\ResourceManager\Methods\ResourceManager_Methods_getResourceBundl
>e.mxml
>;resources\ResourceManager\Methods\ResourceManager_Methods_getString.mxml;
>resour
>ces\ResourceManager\Methods\ResourceManager_Methods_getStringArray.mxml;re
>source
>s\ResourceManager\Methods\ResourceManager_Methods_getUint.mxml;resources\R
>esourc
>eManager\Methods\ResourceManager_Methods_loadResourceModule.mxml;resources
>\Resou
>rceManager\Methods\ResourceManager_Methods_removeResourceBundle.mxml;resou
>rces\R
>esourceManager\Methods\ResourceManager_Methods_removeResourceBundlesForLoc
>ale.mx
>ml;resources\ResourceManager\Methods\ResourceManager_Methods_update.mxml;r
>esourc
>es\ResourceManager\Properties\ResourceManager_Properties_localeChain.mxml;
>resour
>ces\ResourceManager\SWFs\ResourceManagerApp.mxml
>setbuildID:
>     [echo] Target file was:
>c:/Users/cmartin/Documents/GitHub/flex-sdk/mustella
>/successfulBuild.properties
>     [echo] ${server}
>setHostName:
>getConfigId:
>getActualRunId:
>getRunId:
>compilemustellaswc:
>realCompile:
> [loadfile] 
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\local.properties
> doesn't exist
>build_shell_set:
>     [echo] shell_file_mxml_equivs is resources/ResourceManager/**/*.sh
>     [echo] mxml_equiv_shells is ${mxml_equiv_shells}
>     [echo] tmp.sdk.mustella.scripts2 is
>C:\Users\cmartin\Documents\GitHub\flex-
>sdk\mustella\tests\resources\ResourceManager\SWFs\pre_compile.sh;;;;;;;;;;
>;;;;;;
>;;;;
>chmod_shells:
>     [echo] changing user shell files to executable
>shells:
>     [exec] cygwin warning:next: pre_compile.sh 0
>     [exec]
>     [exec]   MS-DOS style path detected:
>c:/Users/cmartin/Documents/GitHub/flex
>-sdk/mustella
>     [exec]   Preferred POSIX equivalent is:
>/cygdrive/c/Users/cmartin/Documents
>/GitHub/flex-sdk/mustella
>     [exec]   CYGWIN environment variable option "nodosfilewarning" turns
>off th
>is warning.
>     [exec]   Consult the user's guide for more details about POSIX paths:
>     [exec]     http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
>     [exec] done with pre compile step
>     [java] exclude_filename:
>c:/Users/cmartin/Documents/GitHub/flex-sdk/mustell
>a/tests/ExcludeListWin.txt
>     [java] os_version: ${os_version}
>     [java] target_os_name: windows
>     [java] device_name: ${device_name}
>     [java] result_include: -includes=SendResultsToRunner
>     [java] nothing left to do
>     [java] Choosing local runner bitmap save
>     [java] okey doke, going to compile
>c:\Users\cmartin\Documents\GitHub\flex-s
>dk\mustella\tests\resources\ResourceManager\SWFs\ResourceManagerApp.mxml
>     [java] Loading configuration file
>C:\Users\cmartin\Documents\GitHub\flex-sd
>k\frameworks\flex-config.xml
>     [java] 
>C:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\tests\resources\
>ResourceManager\SWFs\ResourceManagerApp.swf (967649 bytes)
>     [java] All done with the compile
>     [java] leaving the compile, elapsed: 6
>     [java] ...via exit
>     [echo] compileswfs jreturn is 0
> [loadfile] 
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\local.properties
> doesn't exist
>do_fail:
>compileswfs:
>getExcludes:
>getExcludeIds:
>populateExcludeTable:
>     [echo] populate exclude, got this for db time: 2014/12/11 12:47:52
>justrun:
> [loadfile] 
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\local.properties
> doesn't exist
>delete_cache:
>     [echo] delete cache: /Users/${env.USER}/Library/Caches/Adobe/Flash
>Player/A
>ssetCache
> [loadfile] 
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\local.properties
> doesn't exist
>delete_cache:
>     [echo] delete cache: /Users/${env.USER}/AppData/Roaming/Adobe/Flash
>Player/
>AssetCache
> [loadfile] 
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\local.properties
> doesn't exist
>delete_cache:
>     [echo] delete cache: C:\Users\cmartin/Application Data/Adobe/Flash
>Player/A
>ssetCache
>   [delete] Deleting directory C:\Users\cmartin\Application
>Data\Adobe\Flash Pla
>yer\AssetCache\D362NNAA
>   [delete] Deleting directory C:\Users\cmartin\Application
>Data\Adobe\Flash Pla
>yer\AssetCache
> [loadfile] 
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\local.properties
> doesn't exist
>android_runner:
>ios_runner:
>qnx_runner:
>desktop_runner:
>     [echo] **** Willkommen auf Runner ****
>     [java] starting results server
>     [java] starting baseline server
>     [java] test script count: 1
>     [java] starting the baseline server: Thu Dec 11 12:48:30 MST 2014
>     [java] new test file:
>C:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\t
>ests\resources\ResourceManager\SWFs\ResourceManagerApp.swf
>     [java] ******** cmdArr before:
>     [java]     C:\FlashPlayerContentDebugger\flashplayer.exe
>     [java]     
>C:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\tests\resour
>ces\ResourceManager\SWFs\ResourceManagerApp.swf
>     [java] ******** moreParameters before:
>     [java] ******** cmdArr after:
>     [java]     C:\FlashPlayerContentDebugger\flashplayer.exe
>     [java]     
>C:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\tests\resour
>ces\ResourceManager\SWFs\ResourceManagerApp.swf
>     [java] getting directory from the swf file
>     [java] derived directory:
>C:\Users\cmartin\Documents\GitHub\flex-sdk\mustel
>la\tests\resources\ResourceManager\SWFs
>     [java] Launching:
>     [java]  C:\FlashPlayerContentDebugger\flashplayer.exe
>C:\Users\cmartin\Docu
>ments\GitHub\flex-sdk\mustella\tests\resources\ResourceManager\SWFs\Resour
>ceMana
>gerApp.swf Launching: C:\FlashPlayerContentDebugger\flashplayer.exe
>C:\Users\cma
>rtin\Documents\GitHub\flex-sdk\mustella\tests\resources\ResourceManager\SW
>Fs\Res
>ourceManagerApp.swf
>     [java] USING directory:
>C:\Users\cmartin\Documents\GitHub\flex-sdk\mustella
>\tests\resources\ResourceManager\SWFs
>     [java] time: 12:48:30.596
>     [java] Firing Timeout for
>resources/ResourceManager/Integration/ResourceMan
>ager_Integration_UIComponent_resourcesChanged$ResourceManager_Integration_
>UIComp
>onent_resourcesChanged_localeChain HTTP/1.1 after 12000 millis at:
>12:48:46.361
>     [java] clobberProcess true
>     [java] ClobberProcess, destroying process
>     [java] unpacked result:
>resources/ResourceManager/Integration/ResourceManag
>er_Integration_UIComponent_resourcesChanged
>ResourceManager_Integration_UICompon
>ent_resourcesChanged_localeChain Failed Timed out 0 Thu Dec 11 12:48:34
>MST 2014
> 0.0
>     [java] Total Results so far: 8
>     [java] Grab log, do parse = false
>     [java] Grabbing the log from: C:\Users\cmartin\Application
>Data\Macromedia/
>Flash Player/Logs/flashlog.txt to:
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mu
>stella\tests\resources\ResourceManager\SWFs\ResourceManagerApp.log
>     [java] Grablog: never saw the ScriptDone for
>c:\Users\cmartin\Documents\Git
>Hub\flex-sdk\mustella\tests\resources\ResourceManager\SWFs\ResourceManager
>App.sw
>f
>     [java] at the end of main
>     [java] Shutting down the results server
>     [java] shutting down the baseline server
>     [java] done waiting for results...bye
>     [java] =====================================================
>     [java]     Passes: 7
>     [java]     Fails: 1
>     [java] =====================================================
>     [java]
>     [java] =====================================================
>     [java] =====================================================
>     [java]     Passed:
>     [java] =====================================================
>     [java] resources/ResourceManager/Events/ResourceManager_Events
>RTL_Event_Re
>sourceManagerErrorEvent_AtLeastOne Passed
>     [java] resources/ResourceManager/Events/ResourceManager_Events
>RTL_Event_Re
>sourceManagerProgressEvent Passed
>     [java] resources/ResourceManager/Events/ResourceManager_Events
>RTL_Event_Re
>sourceManagerCompleteEvent Passed
>     [java] resources/ResourceManager/Events/ResourceManager_Events
>RTL_Event_Re
>sourceManagerNoCompleteEventWithError Passed
>     [java] resources/ResourceManager/Events/ResourceManager_Events
>RTL_Event_Re
>sourceManagerNoErrorEventWithComplete Passed
>     [java] 
>resources/ResourceManager/Integration/ResourceManager_Integration_UI
>Component_resourcesChanged
>ResourceManager_Integration_UIComponent_resourcesChan
>ged_update Passed
>     [java] 
>resources/ResourceManager/Integration/ResourceManager_Integration_UI
>Component_resourcesChanged
>ResourceManager_Integration_UIComponent_resourcesChan
>ged_loadResourceModule Passed
>     [java] =====================================================
>     [java]     Failed:
>     [java] =====================================================
>     [java] 
>resources/ResourceManager/Integration/ResourceManager_Integration_UI
>Component_resourcesChanged
>ResourceManager_Integration_UIComponent_resourcesChan
>ged_localeChain Failed Timed out
>     [java]
>     [java]
>     [java] =====================================================
>     [java]     Passes: 7
>     [java]     Fails: 1
>     [java] =====================================================
>     [java]
>     [java]
>     [java] Wrote summary to results.txt
>     [java] Wrote failures to failures.txt
>BUILD FAILED
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\build.xml:1547: The
>followin
>g error occurred while executing this line:
>c:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\build.xml:1665: Java
>returne
>d: 1
>Total time: 1 minute 1 second
>CMartin@CMARTINDT ~/Documents/GitHub/flex-sdk/mustella (develop)
>$
> 
> 
>
> 
>> From: aha...@adobe.com
>> To: dev@flex.apache.org
>> Subject: Re: Could not find compiled locale with mustella
>>ResourceManager tests
>> Date: Thu, 11 Dec 2014 18:49:09 +0000
>> 
>> I ran the ResourceManager tests.  They all pass for me.  I haven’t
>>looked
>> at the tests to see if any actually test for multiple locales, so the
>> issue may be that those tests will now need a .compile file like the
>>kind
>> in RuntimeLocalization.
>> 
>> But if you haven’t made any changes and you can’t get the existing tests
>> to pass, post the full console output.
>> 
>> -Alex
>> 
>> On 12/11/14, 7:43 AM, "Chris Martin" <chrsm...@outlook.com> wrote:
>> 
>> >Hey Alex,
>> > 
>> >The compile worked fine and I have do have the fr_FR folder at
>> >frameworks/locale along with many others.  The fr_FR folder does
>>contain
>> >the _rb.swc files.
>> > 
>> >I'm going to add a new mustella test to the mxml for getString().  I am
>> >running all tests for the ResourceManager to make sure everything runs
>>as
>> >expected before I modify anything.  Seems many of the mustella tests
>>for
>> >ResourceManager are failing with this "cannot find compiled locale"
>>error
>> >for fr_FR.  I tried commenting the ones that failed out just  to see
>>if I
>> >can't get a clean run, but after a few, I decided there were too many
>>to
>> >ignore the error for now.  Don't worry before I commit, i'd make sure
>>the
>> >tests ran completely okay :)
>> > 
>> >I'll didn't find any .compile files in the directory
>> >mustella/tests/resources/ResourceManager or its subdirectories.  Am I
>> >looking in the right spot?  I gotta get to the office, but i'll check
>>out
>> >the example you gave when I get home this afternoon.  Are you able to
>>run
>> >the tests for ResourceManager okay?
>> > 
>> >Thanks,
>> > 
>> >Chris
>> > 
>> >> From: aha...@adobe.com
>> >> To: dev@flex.apache.org
>> >> Subject: Re: Could not find compiled locale with mustella
>> >>ResourceManager tests
>> >> Date: Thu, 11 Dec 2014 00:50:40 +0000
>> >> 
>> >> First, did the locale compile work?  Are there _rb.swc files in the
>> >>sdk’s
>> >> frameworks/locale/fr_FR folder?
>> >> 
>> >> Are you adding a test to an existing file of tests or creating a
>>whole
>> >>new
>> >> thing?  There are .compile files that control what locales get
>>compiled
>> >> into a SWF.  See the mustella/tests/RuntimeLocalization folder for
>> >> examples of them.  The default just compiles en_US into the SWF.
>> >> 
>> >> -Alex
>> >> 
>> >> 
>> >> On 12/10/14, 3:23 PM, "Chris Martin" <chrsm...@outlook.com> wrote:
>> >> 
>> >> >Well, I was hoping compiling for all locales would do the trick, but
>> >>i'm
>> >> >still getting the same error.  Silly me was only looking at the
>>readme
>> >> >for mustella and didn't think to check the readme for the SDK
>>itself.
>> >> >Any other ideas?  I'm thinking it's a compile switch for the swf
>>that
>> >>is
>> >> >generated for the specific test itself.  But that would mean
>>everyone
>> >> >would be having the problem, and certain Jenkins would be freaking
>>out
>> >> >with the same error.  So I feel this has to be environmental.
>> >> > 
>> >> >Chris
>> >> > 
>> >> >> From: bigosma...@gmail.com
>> >> >> Date: Wed, 10 Dec 2014 12:32:32 -0800
>> >> >> Subject: Re: Could not find compiled locale with mustella
>> >> >>ResourceManager tests
>> >> >> To: dev@flex.apache.org
>> >> >> 
>> >> >> Try doing ant other.locales first?  That's what the README seems
>>to
>> >> >> indicate.
>> >> >> 
>> >> >> If you want only fr_FR, you could try ant -Dlocale=fr_FR
>> >> >> 
>> >> >> Thanks,
>> >> >> Om
>> >> >> 
>> >> >> On Wed, Dec 10, 2014 at 12:28 PM, Chris Martin
>><chrsm...@outlook.com>
>> >> >>wrote:
>> >> >> 
>> >> >> >  Hey everyone,
>> >> >> >
>> >> >> > In trying to create a new mustella test case for
>>ResourceManager,
>> >>i'm
>> >> >> > trying to run the tests to get a baseline.  When I run the
>>tests I
>> >> >>get a
>> >> >> > failure.
>> >> >> >
>> >> >> >      [java]
>>=====================================================
>> >> >> >      [java]  Failed:
>> >> >> >      [java]
>>=====================================================
>> >> >> >      [java]
>> >> >> > 
>> >> 
>> 
>>>>>>resources/ResourceManager/Integration/ResourceManager_Integration_UIC
>>>>>>om
>> >>>>po
>> >> >>nent_resourcesChanged
>> >> >> > 
>> >>ResourceManager_Integration_UIComponent_resourcesChanged_localeChain
>> >> >>Failed
>> >> >> > Timed out
>> >> >> >
>> >> >> > How when it fails, the swf that is running reports the following
>> >> >>error:
>> >> >> >
>> >> >> > Error: Could not find compiled locale 'fr_FR'.
>> >> >> >  at mx.resources::ResourceManagerImpl/set
>> >> >> > 
>> >> 
>> 
>>>>>>localeChain()[C:\Users\cmartin\Documents\GitHub\flex-sdk\frameworks\p
>>>>>>ro
>> >>>>je
>> >> >>cts\framework\src\mx\resources\ResourceManagerImpl.as:248]
>> >> >> >  at
>> >> >> > 
>> >> 
>> 
>>>>>>ResourceManager_Methods_findResourceBundleWithResource/___ResourceMan
>>>>>>ag
>> >>>>er
>> >> 
>> 
>>>>>>_Methods_findResourceBundleWithResource_RunCode6_code()[C:\Users\cmar
>>>>>>ti
>> >>>>n\
>> >> 
>> 
>>>>>>Documents\GitHub\flex-sdk\mustella\tests\resources\ResourceManager\Me
>>>>>>th
>> >>>>od
>> >> >>s\ResourceManager_Methods_findResourceBundleWithResource.mxml:137]
>> >> >> >  at flash.events::EventDispatcher/dispatchEventFunction()
>> >> >> >  at flash.events::EventDispatcher/dispatchEvent()
>> >> >> >  at
>> >> >> > 
>> >> 
>> 
>>>>>>RunCode/doStep()[C:\Users\cmartin\Documents\GitHub\flex-sdk\mustella\
>>>>>>as
>> >>>>3\
>> >> >>src\mustella\RunCode.as:46]
>> >> >> >  at
>> >> >> > 
>> >> 
>> 
>>>>>>TestStep/execute()[C:\Users\cmartin\Documents\GitHub\flex-sdk\mustell
>>>>>>a\
>> >>>>as
>> >> >>3\src\mustella\TestStep.as:65]
>> >> >> >  at
>> >> >> > 
>> >> 
>> 
>>>>>>TestCase/runSteps()[C:\Users\cmartin\Documents\GitHub\flex-sdk\mustel
>>>>>>la
>> >>>>\a
>> >> >>s3\src\mustella\TestCase.as:418]
>> >> >> >  at
>> >> >> > 
>> >> 
>> 
>>>>>>TestCase/runSetup()[C:\Users\cmartin\Documents\GitHub\flex-sdk\mustel
>>>>>>la
>> >>>>\a
>> >> >>s3\src\mustella\TestCase.as:272]
>> >> >> >  at
>> >> >> > 
>> >> 
>> 
>>>>>>TestCase/runTest()[C:\Users\cmartin\Documents\GitHub\flex-sdk\mustell
>>>>>>a\
>> >>>>as
>> >> >>3\src\mustella\TestCase.as:251]
>> >> >> >  at
>> >> >> > 
>> >> 
>> 
>>>>>>UnitTester/runTests()[C:\Users\cmartin\Documents\GitHub\flex-sdk\must
>>>>>>el
>> >>>>la
>> >> >>\as3\src\mustella\UnitTester.as:1984]
>> >> >> >
>> >> >> > Now, I'm sure I'm just missing that "little something" to get
>>this
>> >>to
>> >> >> > work, but I don't quite know my way around Mustella quite yet.
>>Any
>> >> >> > pointers would be awesome.  Or even if you get the same error
>>when
>> >> >>you try
>> >> >> > to run the mustella tests for ResourceManager via the command
>>line:
>> >> >> >
>> >> >> > ./mini_run.sh tests/resources/ResourceManager/
>> >> >> >
>> >> >> > while in the mustella directory.
>> >> >> >
>> >> >> > Thanks in advance,
>> >> >> >
>> >> >> > Chris
>> >> >> >
>> >> >                                           
>> >> 
>> >                                      
>> 
>                                         

Reply via email to