Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Apache Continuum在selenium测试期间不打开Mozzila_Java_Selenium_Ant - Fatal编程技术网

Java Apache Continuum在selenium测试期间不打开Mozzila

Java Apache Continuum在selenium测试期间不打开Mozzila,java,selenium,ant,Java,Selenium,Ant,我对连续体没什么问题。当我尝试从命令行运行ant脚本时,一切正常。但当我尝试使用continuum中的ant脚本时,问题出现了。Firefox不想打开,只有等待。一定有什么东西挡住了,但我不知道是什么 这是我的蚂蚁片段: <target name="start_selenium" depends="tomcat_start"> <echo>Starting selenium server</echo> <tstamp>

我对连续体没什么问题。当我尝试从命令行运行ant脚本时,一切正常。但当我尝试使用continuum中的ant脚本时,问题出现了。Firefox不想打开,只有等待。一定有什么东西挡住了,但我不知道是什么

这是我的蚂蚁片段:

<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> 
而不是,使用


那对我没有帮助。在启动firefox时,selenium服务器仍会暂停。
<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>