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. |
The information in this topic applies to web tests that locate web objects by using internal identification properties provided by TestComplete and run in local environments.
This topic describes common problems that may occur when you load the tested Flash or Flex application using Runtime Loader, and explains how to resolve these problems.
Problem | Solution |
---|---|
Error #2036: Load Never Completed |
This problem can happen in the following cases:
|
SecurityError: Error #2121: Security sandbox violation: Loader.content: http://<path>/RuntimeLoader.swf cannot access http://<path_to_app>/my_app.swf. |
This problem occurs if Runtime Loader and your tested application are in different domains. For example, this can happen if you open Runtime Loader from a local web server (for example, http://localhost/RuntimeLoader.html), whereas the tested application is on the Internet (for example, http://www.mysite.com/my_app.swf). To resolve the problem, copy the loader’s files (RuntimeLoader.html, RuntimeLoader.swf and RuntimeLoaderLWN.swf) directly to the tested application’s folder and open the loader from that folder. |
Error #2140: Security sandbox violation: file:///<path>/RuntimeLoader.swf cannot load file:///<path_to_app>/my_app.swf. Local-with-filesystem and local-with-networking SWF files cannot load each other. |
This error means that you specified an incorrect value of the The application can access option in Runtime Loader’s HTML GUI (or the To resolve the problem, specify a different value for the option. For example, if you got this error with the Local file system (file:///) option value (or the |
Error #2148: SWF file <URL> cannot access local resource file:///<URL>. Only local-with-filesystem and trusted local SWF files may access local resources. |
You may face this problem if the tested application is run from the local file system (for example, file:///C:/MyApp/MyApp.html) and loads external resources (data files, styles and so on). Below are the typical causes of the problem:
|
ReferenceError: Error #1056: Cannot create property property_name on RuntimeLoader. |
This problem can happen with applications that cannot be loaded to an external container. For more information on possible causes of the problem and for solutions to the problem, see Limitations on Testing with the Runtime Loader Utility. |
See Also
Testing Flash and Flex Applications with the Runtime Loader Utility - Overview
Testing Flash and Flex Applications
Technical Support and Resources