< Previous | Next >

Lesson 2: Enable the Flex application using the command-line

In this lesson, you use the command-line to compile the Flex application with Functional Tester agent and Flex automation framework libraries.

  1. Go to the command prompt.
  2. Type the following command:
    "flex builder install directory\Flex SDK 2\bin\mxmlc" -include-libraries+=
    "flex builder install directory\Flex SDK 2\frameworks\libs\automation.swc;
    	flex builder install directory\frameworks\libs\automation_agent.swc;
    	flex builder install directory\Flex SDK 2\frameworks\libs\automation_charts.swc;
    	functional tester directory\FunctionalTester\bin\rft.swc" Test.mxml
    For example,
    "C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\bin\mxmlc" -include-libraries+=
    "C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\libs\automation.swc;
    C:\Program Files\Adobe\Flex Automation\frameworks\libs\automation_agent.swc;
    C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\libs\automation_charts.swc;
    C:\Program Files\IBM\SDP70\FunctionalTester\bin\rft.swc" Test.mxml
  3. Press Enter.
The Test.mxml file is compiled to generate the Test.swf.
The above command is also available as a batch file buildapplicationwithadaptor.bat with Rational Functional Tester installed. The batch file is available in Functional tester install directory/Functional Tester/Flex directory. The default location on Windows is C:/Program Files/IBM/SDP70/FunctionalTester/Flex. You can get the batch file from the computer where Rational Functional Tester is installed. Provide the filename of the flex application source code filename as the parameter to the batch file.
buildapplicationwithadaptor.bat Test.mxml
Note: You can also enable the Flex application using Flex Builder. For more information, see the online help.