_flexunit.swf not found when trying to run tests

Intellij: 9.03
Windows7 (64bit)
Java 1.6 (64bit)
Intel i7

HI,
  I have a Maven flex project which I am developing within Intellij. I can make the project and run the project successfully from within Intellij. However if I attempt to run any flexunit tests from within the project then Intellij displays an error dialog with the following:


[Window Title]
file:D:/p4/DUNCAN-HP-HENDRIX/depot/swat/projects/tsi_projects/radon/hx_r3/radon/radon_flex_app/target/_flexunit.swf

[Content]
file:D:/p4/DUNCAN-HP-HENDRIX/depot/swat/projects/tsi_projects/radon/hx_r3/radon/radon_flex_app/target/_flexunit.swf

Application not found

[OK]



If I check the path that is specified in the error the _flexunit.sw exists and is runnable. In fact, when I run it manually by double clicking on it, then it will connect to the flexunit UI in Intellij and report that the tests passed.

So, just to repeat, the file and path displayed in the error does point to a valid runnable swf file called _flexunit.swf.

I can see no reason why it would not be able to run the swf. Any ideas?

thanks
Duncan
2 comments

What is your default OS application for running SWF files? I suppose it is some browser. Try to change it to standalone Flash Player (probably debugger version if you'd like to debug tests). If you have standalone Flex SDK installed you may just launch and then close <Flex SDK>\runtimes\player\10\win\FlashPlayer.exe because the latest launched Flash Player makes itself the default one.

0

Also you may try IDEA 10 EAP because a nice feature is implemented there: you may choose any browser/standalone player to run Flex applications and tests. I suppose you'll not face this problem with IDEA 10.
See http://blogs.jetbrains.com/idea/2010/08/new-flex-run-options/
Download here http://confluence.jetbrains.net/display/IDEADEV/IDEA+X+EAP

0

Please sign in to leave a comment.