首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Apache Continuum在selenium测试期间未打开Mozzila

Apache Continuum在selenium测试期间未打开Mozzila
EN

Stack Overflow用户
提问于 2014-07-17 18:52:08
回答 1查看 38关注 0票数 0

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

下面是我的ant片段:

代码语言:javascript
复制
<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> 
EN

回答 1

Stack Overflow用户

发布于 2014-07-17 22:52:22

使用<arg value="...">而不是<arg line="...">

代码语言:javascript
复制
<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>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24801609

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档