【问题标题】:Selenium set speed execution testSelenium 设置速度执行测试
【发布时间】:2011-09-23 12:18:24
【问题描述】:

我们使用 Selenium IDE 来记录测试。在记录器中,我们可以更改执行速度并且我们的测试通过。我们应该将速度设置为 SLOW。

我使用 ANT 启动 HTML 套件测试。

问题是我们必须设置测试的执行速度

设置此属性的正确参数是什么?有设置它的东西吗?

<target name="run-selenium-tests">
    <echo message="Using browser = ${browser} "/>
    <taskdef resource="selenium-ant.properties" classpathref="class.path">
    </taskdef>
    <java jar="${acceptance.test.lib.dir}/selenium-server-standalone-2.0rc3.jar" fork="true">
        <arg line="-htmlSuite ${browser}"/>
        <arg line="http://myserver:8080/"/>
        <arg line="../sampletest/selenium/my_test.html"/>
        <arg line="../sampletest/selenium/report/results.html"/>
        <arg line="-timeout 1000"/>
    </java>
</target>

谁能帮助我们?

谢谢!

【问题讨论】:

    标签: java selenium automated-tests selenium-ide


    【解决方案1】:

    您可以使用以下 selenium 命令来减慢执行速度

        setSpeed(value in milliseconds)
    

    该命令会在每次执行命令后等待指定的值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-19
      • 1970-01-01
      • 1970-01-01
      • 2010-09-05
      • 1970-01-01
      • 2015-10-08
      相关资源
      最近更新 更多