By popular demand, TestComplete 8.10 now includes a new capability to test Adobe AIR applications. With TestComplete 8.10, you can record and run automated tests against HTML- and Flex-based AIR applications, insert checkpoints, call methods on the application objects, read and set object properties, etc. In this post, I’ll give you a quick overview of AIR support.
Adding Automated Testing Support to AIR Applications
With TestComplete 8.10, you can test HTML-based and Flex-based AIR applications created with Adobe AIR SDK 1 and 2.
To make an AIR application testable, an application developer must first compile it with TestComplete’s automated testing library. There are two versions of the library for various types of AIR applications:
- AIRAgent.js – testing library for HTML-based AIR applications
- AIRClient.swc – testing library for Flex-based AIR applications
Once an AIR application has been prepared for testing in this way, TestComplete can identify all objects inside the application.
You also have access to the native methods and properties of AIR application objects via the FlexObject property. You can use these native methods and properties in case you want to enhance your test with advanced operations that aren’t available out-of-the-box.
If you have a Flex-based AIR application, the
FlexObject property provides access to Flex methods and properties. If you have an HTML-based application,
FlexObject provides an interface to the methods and properties of the appropriate HTML element.
Adding AIR Applications to Your Test Project
For easier control over AIR applications, you can add it to the Tested Applications collection of your test project. This way, for example, you can instruct TestComplete to automatically launch your tested AIR application when you start recording a test.
AIR applications can be stored on the disk in two forms:
- An executable file (.exe) and other helper files. These are applications that have been preliminarily installed from AIR installation packages (.air files).
- A set of files, including the application descriptor file (.xml) and other helper files. Typically, these are debug versions of AIR applications that have not been packaged into AIR installation files and prepared for deployment. Such applications can be used with the AIR Debug Launcher utility that’s part of the Adobe AIR SDK.
TestComplete can run, test and manage both forms of AIR applications.
You can specify the tested AIR applications while creating a new test project (as shown on the images below), and you can also add tested applications at any time to existing test projects.
Once you have a tested application defined, it can be run with a single command, both from the TestComplete IDE and from your test:
If you want to see how TestComplete 8.10 can help you automate testing of your AIR application, download TestComplete for free now. If you have any questions or comments, you are welcome to leave them below this post or start a separate discussion on the TestComplete forums.
Happy automated testing!