【发布时间】: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