14 years ago
Flex based AIR Application not detected by TestComplete!
Given below are the steps followed to make TestComplete(TC) recognize a Flex Based AIR application:
1) A simple AS3Sample.as was created (attached).
2) Compile using “mxmlc -load-config+="C:\AdobeAIR\flex_sdk_4.6\frameworks\air-config.xml" -include-libraries+="C:\Program Files\Smartbear\TestComplete 9\Open Apps\Flex\AIRClient4.swc" AS3Sample.as (the command in bold is as per TC’s documentation to include the .swc in order for it to recognize it. Tried AIRClient3.5.swc, AIRClient.swc also) – creates AS3Sample.swf
3) Create a Windows Installer package thru’ adt -package -storetype pkcs12 -keystore myCert.pfx -target native AS3Sample.exe AS3Sample.xml AS3Sample.swf.
4) Install the package and run AS3Sample.exe. The application runs fine.
5) Now launch TC and click “Display Object Spy”, drag & drop it over the AS3Sample.exe. It pops up “AIR Application is not Prepared for Testing” error message.
Environment
· Flex SDK used: 4.6.0.
· AIR SDK used (as part of Flex SDK above): 3.1
· ADOBE AIR 3.5 runtime installed
· OS: Windows 7 32 bit
Please guide to resolve the issue.
1) A simple AS3Sample.as was created (attached).
2) Compile using “mxmlc -load-config+="C:\AdobeAIR\flex_sdk_4.6\frameworks\air-config.xml" -include-libraries+="C:\Program Files\Smartbear\TestComplete 9\Open Apps\Flex\AIRClient4.swc" AS3Sample.as (the command in bold is as per TC’s documentation to include the .swc in order for it to recognize it. Tried AIRClient3.5.swc, AIRClient.swc also) – creates AS3Sample.swf
3) Create a Windows Installer package thru’ adt -package -storetype pkcs12 -keystore myCert.pfx -target native AS3Sample.exe AS3Sample.xml AS3Sample.swf.
4) Install the package and run AS3Sample.exe. The application runs fine.
5) Now launch TC and click “Display Object Spy”, drag & drop it over the AS3Sample.exe. It pops up “AIR Application is not Prepared for Testing” error message.
Environment
· Flex SDK used: 4.6.0.
· AIR SDK used (as part of Flex SDK above): 3.1
· ADOBE AIR 3.5 runtime installed
· OS: Windows 7 32 bit
Please guide to resolve the issue.
