Testing Multiple Flex Applications on the Same Web Page

When multiple Flex applications exist on the same web page, Silk Test Classic uses the Flex application ID or the application size property to determine which application to test. If multiple applications exist on the same page, but they are different sizes, Silk Test Classic uses the size property to determine on which application to perform any actions. Silk Test Classic uses JavaScript to find the Flex application ID to determine on which application to perform any actions if:
  • multiple Flex applications exist on a single web page.
  • those applications are the same size.

In this situation, if JavaScript is not enabled on the browser machine, an error occurs when a script runs.

To test multiple Flex applications that are different sizes on a single web page , follow the steps in Testing Apache Flex Applications.

To test multiple Flex applications that are the same size on a single web page, perform the following steps:
  1. Enable JavaScript.
    • In Internet Explorer:
      1. Click Tools > Internet Options.
      2. Click the Security tab.
      3. Click Custom level.
      4. In the Scripting section, under Active Scripting, click Enable and click OK.
    • In Mozilla Firefox:
      1. Choose Tools > Options.
      2. Click Content and then check the Enable JavaScript check box.
      3. Click OK.
  2. Follow the steps in Testing Apache Flex Applications.
Note: If a frame exists on the web page and the applications are the same size, this method will not work.

Silk Test Classic provides sample applications that demonstrate multiple applications on a single web page. You can access the sample applications at http://demo.borland.com/flex/SilkTest19.5/index.html.