Setting up automated testing in Flex SDK 3.3.0
Automated testing tools like FlexMonkey, RIATest, and QTP in Flex require you to add a few .swc files from Adobe to the compiler arguments in order to run. This is easy enough to set up in the project settings:
-locale en_US -include-libraries “${flexlib}/libs/automation.swc” “${flexlib}/libs/automation_agent.swc” “${flexlib}/libs/automation_dmv.swc”
But if you try to do this in version 3.3.0 of the Flex SDK, the first thing that you’ll notice is that these three files are not included in the 3.3.0 SDK distribution. Adobe tech support has reportedly been telling developers to copy these files from the 3.2.0 release of the SDK. These files are located at sdks/3.2.0/frameworks/libs/. You probably also want to copy automation_dmv.swc and qtp.swc, as well as the 2.0.1.automation_swcs directory. However, once you’ve copied these files over to the corresponding directory in the 3.3.0 SDK, you will get new errors about being unable to locate the resource bundle for the selected locale:
Unable to locate resource bundle automation.swc for local en_US
Unable to locate resource bundle automation_agent.swc for local en_US
The trick is that you also have to copy over automation_agent_rb.swc and automation_rb.swc from 3.2.0. These files are located in sdks/3.2.0/frameworks/locale/[your locale]/, where [your locale] is something along the lines of “en_US” or “ja_JP”.
This issue is mentioned over in the FlexMonkey bug tracker, though it’s not a bug with FlexMonkey.






