Customizing Apache Flex Scripts

You can manually customize your Flex scripts. You can insert verifications using the Verification wizard. Or, you can insert verifications manually using the Verify function on Flex object properties.

To customize Adobe Flex scripts:

  1. Record a testcase for your Flex application.
  2. Open the script file that you want to customize.
  3. Manually type the code that you want to add. For example, the following code adds a verification call to your script:
    Desktop.Find("//BrowserApplication").Find("//BrowserWindow")
    .Find("//FlexApplication[@caption='explorer']").Find("//FlexButton[@caption='OK']")
    .VerifyProperties({...})

Each Flex object has a list of properties that you can verify. For a list of the properties available for verification, review the Flex.inc file. To access the file, navigate to the <SilkTest directory>\extend\Flex directory. By default, this file is located in C:\Program Files\Silk\SilkTest\extend\Flex\Flex.inc.