Cogitek RIATest 3 Documentation Copyright © Cogitek Inc.

Compiling automation libraries and RIATest Agent statically

If you decided to use static compilation of automation libraries and embed RIATest 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 add the following (depending on version of Flex SDK you use):

    If your application is compiled with Flex SDK version Add compiler arguments...
    SDK 2.x -include-libraries "C:/Program Files/RIATest 3/agent/RIATestAgent2.swc" ${flexlib}/locale/en_US/automation_rb.swc ${flexlib}/libs/automation.swc "C:/Program Files/Adobe/Flex Builder 3/sdks/3.0.0/frameworks/libs/2.0.1.automation_swcs/automation_agent.swc" "C:/Program Files/Adobe/Flex Builder 3/sdks/3.0.0/frameworks/libs/2.0.1.automation_swcs/automation_agent_rb.swc"
    SDK 3.0 to 3.4 -include-libraries "C:/Program Files/RIATest 3/agent/RIATestAgent3.swc" ${flexlib}/libs/automation.swc ${flexlib}/libs/automation_dmv.swc ${flexlib}/libs/automation_agent.swc

    SDK 4.0

    -include-libraries "C:/Program Files/RIATest 3/agent/RIATestAgent4.swc" ${flexlib}/libs/automation/automation.swc ${flexlib}/libs/automation/automation_dmv.swc ${flexlib}/libs/automation/automation_agent.swc

    If you are automating AIR application in addition to the above libraries also specify ${flexlib}/libs/automation/automation_air.swc

    If you are automating Spark application in addition to the above libraries also specify ${flexlib}/libs/automation/automation_spark.swc

    In the above, if required, replace "C:/Program Files/RIATest 3" with the correct RIATest installation directory.
    Mac OS X: The following is the default path to agent folder: /Applications/RIATest 3/agent/
  4. Click OK to save your changes and close the dialog box.
  5. Compile your application.


The RIATest Agent and Flex automation libraries are 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.

When you run your 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.


Found a typo? Have a suggestion? Please submit your request here.