问题描述
我正在使用 ANT 任务在构建服务器上运行 FlexUnit.当我从 Flash Builder (4) 运行 Flex 单元测试时,它工作正常.但是当从 ANT 运行时,它会打开默认播放器(在我的例子中是 FireFox),成功运行 FU 但永远不会返回到命令行.最终我得到一个java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report"异常,因为 FU 永远不会返回.
I'm using the ANT task to run FlexUnit on a build server. When I run the Flex Unit Tests from the Flash Builder (4) it works fine. But when running from ANT it opens the default player (FireFox in my case), runs the FU successfully but never returns to the command line. Eventually I get a "java.util.concurrent.ExecutionException: Socket timeout waiting for flexunit report" exception because the FU never returns.
可能是什么问题?
<flexunit swf="${APP_TEST_FILE_SWF}"
toDir="${OUTPUT_DIR}/test"
command="C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\player\win\10.1\FlashPlayerDebugger.exe"
haltonfailure="true" verbose="true"
localTrusted="true"/> </target>
推荐答案
也遇到了这个问题.需要很长时间才能修复它.我的解决方案是确保您已将 .swf 文件与您的独立 flashplayer 相关联.您可以从 http://www.adobe.com/support/flashplayer 下载 Flash Player 11.5 投影仪/downloads.html
Also came across this problem. Take a long time to fix it. My solution ismake sure you’ve associated .swf files with your standalone flashplayer.You could download Flash Player 11.5 Projector from http://www.adobe.com/support/flashplayer/downloads.html
这篇关于FlexUnit ANT 任务挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!