1 Reply Latest reply on Apr 14, 2010 9:53 AM by legrosb

    Windows player selection


      In working with FlexUnit I've noticed the following output when running on Windows:


      [flexunit] Launching player:
      [flexunit] Executing 'rundll32' with arguments:
      [flexunit] 'url.dll,FileProtocolHandler'
      [flexunit] 'path_to_test.swf'


      For developers who have installed FlexBuilder this execution method is working fine.  When developers who do not have FlexBuilder installed run the tests they essentially hang and time out because the Flash movie is never started because the OS doesn't have a handler for .swf files registered.  We can work around this by creating that handler for any given machine.


      I'm curious to know if there is a way that the Ant task can use a player from the SDK pointed to by FLEX_HOME instead of relying on the operating system to supply the related player?

        • 1. Re: Windows player selection
          legrosb Level 3

          @edthorne - There is a feature request in place to provide this functionality in JIRA; please vote on it so we can evaluate it for inclusion for future releases.  In the mean time, if you would like to explicitly call a specific Flash Player command using the Ant task, FlexUnit 4.1 will support the "command" property on the Ant task.  This property takes a path to the executable you'd like to use to launch the Flash Player or ADL command based on the value of the "player" property.  It has not yet been merged into the main flexunit master, but if you'd like to give it a try, you can download the source @ http://github.com/blegros/flexunit.  If you find any bugs or have any feedback, it is always welcome so we can improve the project.