【问题标题】:mvn selenium:selenese hangs in the Spring Roo Tutorialmvn selenium:selenese 在 Spring Roo 教程中挂起
【发布时间】:2012-05-01 09:21:26
【问题描述】:

我正在学习 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,一切似乎都挂起。

欢迎任何建议或想法。

环境: 操作系统视窗 7 JDK 1.6 Maven 3.0.3 火狐 11 下载了最新的spring roo

【问题讨论】:

    标签: spring maven selenium spring-roo


    【解决方案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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-07
      • 1970-01-01
      • 1970-01-01
      • 2012-11-05
      相关资源
      最近更新 更多