Compile the Flex application using the Rational Functional Tester agent and Flex Automation Libraries by running the following command.
To compile and enable a Flex 2.0 application for functional testing:
At the command line, type the following, and press Enter:"flex builder installation directory\Flex SDK 2\bin\mxmlc" -include-libraries+="flex builder installation directory\Flex SDK 2\frameworks\libs\automation.swc;flex builder installation directory\frameworks\libs\automation_agent.swc;flex builder installation directory\Flex SDK 2\frameworks\libs\automation_charts.swc;functional tester installation directory\FunctionalTester\bin\rft.swc;functional tester installation directory\FunctionalTester\bin\rftProp.swc" Test.mxml
To compile and enable a Flex 3.0 application for functional testing:
At a command line, type the following command, and press Enter:"flex builder installation directory\Flex Builder 3\sdks\3.0.0\bin\mxmlc.exe"-include-libraries+="flex builder installation directory\Flex Builder 3\sdks\3.0.0\frameworks\libs\automation.swc;flex builder installation directory\Flex Builder 3\sdks\3.0.0\frameworks\libs\automation_agent.swc;flex builder installation directory\Flex Builder 3\sdks\3.0.0\frameworks\libs\automation_dmv.swc;flex builder installation directory\rftFlex3.0.swc;functional tester installation directory\rftProp_Flex3.0.swc" Test.mxml
The default Flex Builder install directory on Windows is C:\Program Files\Adobe.
This command is also available as a batch file with Rational Functional Tester installed. Testers can provide this batch file to the developer to enable the Flex application for testing. Provide the flex application source code filename as the parameter to the batch file.
The batch file is available in functional tester install directory\Functional Tester\Flex folder.
buildapplicationwithadaptor.bat Test.mxmlFor Flex 3.0:
buildapplicationwithFlex3adaptor.bat Test.mxml