RIATest 2 Documentation Copyright © RIATest.com

Compiling automation libraries and Agent statically

If you decided to use static compilation of automation libraries and Agent perform the following steps:

  1. Open your application project in Flex Builder 3.
  2. Select Project -> Properties -> Flex Compiler.
  3. In 'Additional compiler arguments' field add the following:
    -include-libraries "C:\Program Files\RIATest\agent\RIATestAgent.swc" "C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\automation.swc" "C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\automation_agent.swc" "C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\libs\automation_dmv.swc"

    If needed substitute C:\Program Files\Adobe\Flex Builder 3 by directory where you installed Flex Builder 3 and C:\Program Files\RIATest by RIATest installation directory.

  4. Click OK to Save changes and close the dialog box.
  5. Compile your application.

RIATest agent and Flex automation libraries is now embedded in your application. Every time your application starts RIATest agent will attempt to connect to RIATest tool in order to establish an automation session.

Run you application. You should see the RIATest Agent toolbar floating over your application. The toolbar title will read 'RIATest Agent - Not connected'. This is normal - RIATest agent was unable to connect to RIATest tool.