我有一个小问题连续体。当我尝试从命令行运行ant脚本时,一切工作正常。但是当我尝试使用continuum中的ant脚本时,出现了问题。Firefox不想打开,只能等待。一定有什么东西阻塞了,但我不知道是什么。
下面是我的ant片段:
<target name="start_selenium" depends="tomcat_start">
<echo>Starting selenium server</echo>
<tstamp>
<format property="TSTAMP" pattern="yyyy_MM_dd_HH_mm"/>
</tstamp>
<java jar="${apl.dir}/eleniumTests/selenium-server-standalone-2.33.0.jar" fork="true" failonerror="true">
<arg line="-firefoxProfileTemplate"/>
<arg line="/home/local/seleniumFirefox"/>
<arg line="-htmlSuite"/>
<arg line="*firefox"/>
<arg line="http://127.0.0.1:8083/"/>
<arg line="${apl.dir}/SeleniumTests/suiteTest.html"/>
<arg line="FirefoxResult.html"/>
</java>
</target> 发布于 2014-07-17 22:52:22
使用<arg value="...">而不是<arg line="...">
<java jar="${apl.dir}/eleniumTests/selenium-server-standalone-2.33.0.jar" fork="true" failonerror="true">
<arg value="-firefoxProfileTemplate"/>
<arg value="/home/local/seleniumFirefox"/>
<arg value="-htmlSuite"/>
<arg value="*firefox"/>
<arg value="http://127.0.0.1:8083/"/>
<arg value="${apl.dir}/SeleniumTests/suiteTest.html"/>
<arg value="FirefoxResult.html"/>
</java>https://stackoverflow.com/questions/24801609
复制相似问题