Configuring the non-enabled Flex application

You can configure the Flex applications that are not compiled using theHCL OneTest UI agent and Flex automation libraries.

About this task

The developer must first set up the development environment before enabling the Flex application for testing with HCL OneTest UI by configuring the Runtime loader to generate the SWF file for the application to be tested.

After the SWF file is generated, the Flex application must be configured to create the URL that HCL OneTest UI must use to test the SWF file.

Procedure

  1. To generate the SWF file for the Flex application, complete these steps:
    Note: Runtime loaders for the supported Flex versions such as 4.5 can be configured by providing the appropriate SDK libraries and changing the output filenames accordingly. The runtime loader files that are enabled corresponding to the SDK under use, must be embedded in the html page.
    1. Compile the RuntimeLoader.mxml to swf file using the command: "C:\Program Files\flex\FlexSdk4.5\4.5.0\bin\mxmlc.exe" -include- libraries+="C:\Program Files\flex\FlexSdk4.5\4.5.0\frameworks\libs\automation\automation.swc;C:\Program Files\flex\FlexSdk4.5\4.5.0\frameworks\libs\automation\automation_agent.swc;C:\Program Files\flex\FlexSdk4.5\4.5.0\frameworks\libs\automation\automation_dmv.swc;%HOTUI_INSTALL_DIR%\rftFlex4.5.swc;%HOOTUI_INSTALL_DIR%\rftProp_Flex4.5.swc" - output="C:\Program Files\HCL\HCLOneTest\FunctionalTester\Flex\RuntimeLoaderFlex30.swf" "C:\Program Files\HCL\HCLOneTest\FunctionalTester\Flex\RuntimeLoader.mxml".
      Note: For Flex 4.5, you can also include the automation_spark.swc file for Spark controls.
    2. Open the RuntimeLoadingTestFlex30.html with notepad.
    3. Replace the movie source in the object and embed tags with RuntimeLoaderFlex30.swf.
  2. To create the URL that is to be used to test the SWF file, complete these steps:
    1. Click Configure > Configure Applications for Testing.
    2. Click Add in the Application Configuration Tool window.
    3. Select Flex Application, and click Next.
    4. Select Configure Flex application setup in Flex application configuration type, and Click Next.
    5. Select Web Application as the type of Flex application.
    6. Select Runtime from the Enablement type list.
    7. Select the Flex version from the Flex SDKs list.
    8. Click Browse to select the SWF file of the application to be tested in the Application field.
    9. Click Finish.