Setting up the test environment for testing Flex applications

A correct environment setup for testing Flex applications helps ensure reliable functional testing results. The test environment is typically set up by the testers on the test computer.

Before you begin

Note: Ensure that the msvcp71.dll is available in the System32 directory (C:\Windows\System32) or SysWow64 directory (C:\Windows\SysWOW64).

About this task

To set up the test environment:

Procedure

  1. Check the settings of the browser:
    1. Internet Explorer:
      1. Open Internet Explorer.
      2. Click Tools > Internet Options.
      3. Click the Security tab.
      4. Select the appropriate web content zone. Do one of the following steps:
        • If the web server is configured on a remote machine, complete these steps:
          1. Select Local Intranet.
          2. Click Sites > Advanced .
          3. In the Add this Web site to the zone field, type the URL to add to the web server.
          4. Click Add, and then click OK.
        • If the web server is configured on local host, complete these steps:
          1. Select Local Intranet.
          2. Click Custom Level.
          3. In the Reset to list, select Medium-low.
          4. In the Settings pane, click Enable for Initialize and script ActiveX controls not marked as safe.
          5. Click OK.
    2. Firefox:
      1. Click Tools > Options > Content.
      2. Clear the Block pop-up windows check box.
      3. Click Tools > Options > Security.
      4. Clear the Warn me when sites try to install add-ons check box.
  2. Open Rational Functional Tester, and click Configure > Enable Environments for Testing. You must enable the required JRE and set Internet Explorer as the default web browser.
  3. Enable the required browser on the Web Browsers page.
  4. Make the application under test trusted to run the application locally. Paths to individual files or directories can be trusted, rendering all the files in each selected directory and any of its subdirectories trusted. Follow these steps to assign trust designations:
    1. Create a folder FlashPlayerTrust in C:\WINDOWS\system32\Macromed\Flash.
    2. Create a file named Flex without any file extension in the FlashPlayerTrust folder.
    3. Type the directory path of the Flex application in the Flex file. For example, if the Flex application is in C:\Test directory, type the path in the Flex file as C:\Test.
    4. Save the file.
    Note: If you are testing a Flex 4.0, 4.1 or 4.5 application, ensure to specify security settings in Flash Player.

Security Settings for Adobe Flex 4.0, 4.1 and 4.5

About this task

Specify security settings only if you are testing a Flex 4.0, 4.1 or 4.5 application. For Flex 3.x applications, this task need not be performed.

Procedure

  1. Open an application in Flash Player.
  2. Right-click and select Settings to access Settings Manager.
  3. Select the Privacy tab.
  4. Click Advanced. Adobe Flash Player launches a new browser window and loads the Settings Manager help page.
  5. Click Global Security Settings panel link. The Global Security Settings window opens.
  6. Add your application directory into secured or trusted directory. In the Always trust files in these locations drop down menu, click Add location. Browse for the location.
    Note: For more information about setting the security configuration, see the Adobe website.

Feedback