Message - TestComplete Diagnostics: Loaded .SWF File Not Prepared for Testing

Applies to TestComplete 15.42, last modified on August 01, 2022
Flash Player has reached end of life on December 31, 2020. Support for Flash and Flex applications is now deprecated in TestComplete and will be removed in a future release.

You may receive this message when trying to record a test against a Flex or Flash application or when exploring the application with the Object Spy. TestComplete displays this message if the Flash or Flex application under test was not prepared for testing.

To get access to a Flash or Flex application’s internal objects and to their public properties, prepare the application in one of the following ways:

  • To enable this access, use the debug version of Flash Player to run Flash and Flex applications and configure the Player to preload the FlashInjector.swf helper Flash movie when loading SWF files of the Flash or Flex application to be tested. This allows you to make all Flash and Flex applications created with ActionScript 3.0 testable at run time.

    FlashInjector.swf is shipped along with TestComplete and resides in the <TestComplete 15>\Open Apps\Flex folder. You can command TestComplete to automatically install and configure FlashInjector, or you can do this manually. For more information, see the description of Flash/Flex options.

    To learn how you can use the debug version of Flash Player for automated testing, see the topics of the Testing Flash and Flex Applications with the Debug Version of Flash Player section.

  • You can also run the application via a special Runtime Loader utility delivered along with the TestComplete installation package. You can find this utility in the <TestComplete 15>\Open Apps\Flex\RuntimeLoader folder. To better learn how to run Flash and Flex applications using this utility, see Testing Flash and Flex Applications with the Runtime Loader Utility.

  • As an alternative, you can ask the application developers to include the FlexClient.swc library, which is a part of the TestComplete package, in the application under test. They could create, for example, an individual testing-enabled version of the application with this library embedded while keeping the release version unchanged.

    Note that the TestComplete installation package contains three versions of this library (different library versions correspond to different versions of Flex SDK). So, you should choose the needed library version depending on the Flex SDK version you’re using. For detailed instructions on how to include this library in a Flash or Flex application for automated testing, see Testing Flash and Flex Applications with the FlexClient Library.

See Also

Testing Flash and Flex Applications - Overview
Preparing Flash and Flex Applications for Testing with the Debug Version of Flash Player
Preparing Flash and Flex Applications for Testing with the FlexClient Library
Preparing Flash and Flex Applications for Testing with the Runtime Loader Utility

Highlight search results