Sunday, July 8, 2012

Adobe Actionscipt Code Coverage Pluign

You will find many posts on how to use adobe action script code coverage plugin but I will be explaining here how to send coverage data from the machine where the application is running to a remote machine where the plugin is listening.

Check out this post for working around your problems relating to this plugin Troubleshooting actionscript code coverage

Following info is an extension to this post :
  1. Get the plugin from here. You'll get the .zip file.
  2. Unzip the zip file and get the jar file.
  3. Unzip the jar file as well and you should get the following directories : as, classes, icons, META-INF, src and following files : build.properties, plugin.properties, plugin.xml
  4. Get the CodeCoverageAgent.swf in "as" directory and copy it to any location. I am taking c:\com.adobe.flash.codecoverage\CodeCoverageAgent.swf
  5. Create or modify c:\users\<username>\mm.cfg with the following entry :-
  6. PreloadSwf=c:\com.adobe.flash.codecoverage\CodeCoverageAgent.swf?host=<ip address of remote machine>&port=9900&level=0
  7. Create or append c:\users\username\AppData\Roaming\Macromedia\FlashPlayer\#Security\FlashPlayerTrust with following entry:-
  8. c:\com.adobe.flash.codecoverage
Users of other windows apart from Win7, replace "users" directory with "Documents and Settings"

No comments: