【问题标题】:What are the plugin, dependencies to generate reports by using Selenium, JUNIT, MAVEN [closed]使用 Selenium、JUNIT、MAVEN 生成报告的插件、依赖项是什么 [关闭]
【发布时间】:2013-03-18 15:15:52
【问题描述】:

我正在使用 Selenium webdriver、JUNIT、MAVEN 设置 selenium maven 项目。

所以在 pom.xml 中我已经给出了 selenium 相关的依赖项.. 生成 Junit 报告的所有插件和依赖项是什么?

【问题讨论】:

标签: maven ant selenium webdriver selenium-webdriver


【解决方案1】:
<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-report-plugin</artifactId>
    <version>2.5</version>
    <type>maven-plugin</type>
</dependency>  <reporting>
<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-report-plugin</artifactId>
    <version>2.5</version>
    <configuration>
      <outputName>MavenSeleniumTestResults</outputName>                   
    </configuration>
  </plugin> 

</plugins>

【讨论】:

  • 如果我使用 driver.close();在代码中,如果我使用 mvn install 之类的命令进行安装,我将面临错误 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project DARTMavenSelenium: There是测试失败。 [错误] [错误] 个别测试结果请参考 C:\Users\D888977\workspace\DARTMavenSelenium\target\surefire-reports。 [错误] -> [帮助 1] [错误]
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-12-01
  • 1970-01-01
  • 2011-05-05
  • 2011-01-30
  • 1970-01-01
  • 2015-04-13
相关资源
最近更新 更多