【发布时间】:2011-05-27 19:33:04
【问题描述】:
我有一系列可以使用 selenese 目标 selenium-maven-plugin(1.1 版)运行的 HTML 测试。我能够为 IE 运行它。但是,这不适用于 Firefox 4。我不断打开一个空白的 Firefox 窗口,服务器将挂在那里。我相信我已经将问题缩小到 Selenium-maven-plugin 使用旧的 Selenium 1.0 Core,它在 Firefox 4 中无法正常运行。
我想知道是否有某种方法可以使用 Maven 和 Selenium 2.0 来运行这些 HTML 测试。以下是我的 POM 文件的 sn-p。
...
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>selenium-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<browser>*iexploreproxy</browser>
<suite>src/test/selenium/html/suite.html</suite>
<startURL>http://localhost:5555/</startURL>
<port>5555</port>
</configuration>
<executions>
<execution>
<id>Run-Selenese-Scripts</id>
<phase>integration-test</phase>
<goals>
<goal>selenese</goal>
</goals>
<configuration>
<port>5555</port>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
...
如果有任何其他方式来运行我可能错过的 HTML 套件(除了 Selenium IDE),请分享。
谢谢,
胡安
【问题讨论】:
标签: maven selenium selenium-rc selenium-webdriver