Flex applications testing process
The testing process is based on the tasks that Flex developers and testers perform. The process for automating functional tests of Flex applications differs, depending on the way developers create the application under test.
- At compile time for applications that are enabled for functional testing
- At run time for applications that are not enabled for functional testing
Prerequisites
To test Flex applications, be sure the following software is installed:
- Adobe Flex SDK and Adobe Flex automation framework
- Adobe Flex Builder
- One of the following browsers:
- Google Chrome
- Microsoft Internet Explorer
- Mozilla Firefox
- Adobe Flash Player ActiveX control
Assumptions
- Testers are not skilled in developing Flex applications.
- Testers cannot access Flex source code, the Flex compiler, or Flex documentation.
- Flex developers do not know how to use HCL OneTest™ UI.
Testing Flex applications
The tasks that you perform in testing Flex applications depend on the application and whether you are a developer or a tester.
You can test applications that are enabled for HCL OneTest™ UI or test applications that are not enabled for HCL OneTest™ UI.
Testing HCL OneTest™ UI enabled Flex applications
Developers can enable the Flex applications for testing by compiling the Flex application with HCL OneTest™ UI agent (rftFlex4.5.swc and rftProp_Flex4.5.swc) and Flex automation framework libraries. After compilation, the developer must create an HTML wrapper that embeds the enabled Flex application and provide the application on a web server or on a local test computer for testing.
Advantages and limitations of testing HCL OneTest™ UI enabled Flex applications
- Efficiency: Multiple enabled Flex applications can be embedded in a single HTML page and can be tested simultaneously.
- Ease: Testing is simplified when different Flex applications communicate with each other. All the related enabled Flex applications can be embedded in a single page and can be tested based on a single scenario.
- Location: Enabled Flex applications can be tested locally.
One limitation in testing enabled Flex applications is that only the developer can enable the Flex application for testing.
Testing nonenabled Flex applications
Developers can enable the runtime loader component for Flex applications and deploy the application on a web server for testing.
Advantages and limitations of testing non-enabled Flex applications
- Ease: Testers benefit because many technical complexities are hidden.
- Efficiency: Load and test multiple SWF files.
- Deployment option: The Flex application can be deployed in a test or production environment.
- Location: The runtime loader cannot be run locally; you must deploy the runtime loader to a web server.