1

我正在通过 Spring Roo 教程进行工作,但此时我陷入了困境:

http://static.springsource.org/spring-roo/reference/html/beginning.html#beginning-step-7

这是 Maven 命令行输出:

C:\pizza>mvn selenium:selenese
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pizzashop 0.1.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- selenium-maven-plugin:2.1:selenese (default-cli) @ pizzashop ---
log4j:WARN No appenders could be found for logger (org.openqa.selenium.server.SeleniumServer).
log4j:WARN Please initialize the log4j system properly.
14:53:20.476 INFO - Preparing Firefox profile...
14:53:23.026 INFO - Launching Firefox...

此时我的 FireFox 11 浏览器已启动,但现在有可见的 URL,一切似乎都挂起。

欢迎任何建议或想法。

环境:OS Windows 7 JDK 1.6 Maven 3.0.3 Firefox 11最新spring roo下载

4

1 回答 1

1

它是 pom.xml 中的 selenium 插件配置。注意:开箱即用(可以这么说) Roo 将期待 Firefox 3.x 您可以安装 Firefox 3.x,也可以更改配置以使用其他支持的浏览器 - 例如:

        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>selenium-maven-plugin</artifactId>
            <version>2.1</version>
            <configuration>
            <browser>*safari</browser>
            <suite>src/main/webapp/selenium/test-suite.xhtml</suite>
            <results>${project.build.directory}/selenium.html</results>
            <startURL>http://localhost:4444/</startURL>
        </configuration>
            <dependencies>
                <dependency>
                    <groupId>org.seleniumhq.selenium</groupId>
                    <artifactId>selenium-server</artifactId>
                    <version>2.9.0</version>
                </dependency>
            </dependencies>
        </plugin>
于 2012-05-15T17:12:59.033 回答