显示Selenium Maven设置的测试结果报告的最佳方法是什么

时间:2013-03-15 13:23:19

标签: maven ant selenium webdriver selenium-webdriver

我正在使用JUNIT为selenium webdriver设置maven。

那么任何人都可以建议我显示测试结果报告的最佳方式是什么?

如果可能的话,你可以发送pom.xml,如果你有好的话。

由于 拉朱

1 个答案:

答案 0 :(得分:0)

对于测试结果报告,我只是将测试输出目录复制到tomcat服务器中,需要查看它的人可以这样做。

下面是我的pom.xml。我意识到我确实需要更新我的selenium版本,但这应该会给你一个良好的开端。

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <modelVersion>4.0.0</modelVersion>
  <groupId>VINCI_DART_Automation</groupId>
  <artifactId>VINCI_DART_Automation</artifactId>
  <version>0.0.1-SNAPSHOT</version>
    <build>
      <sourceDirectory>src</sourceDirectory>
        <plugins>
          <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.3.2</version>
            <configuration>
            <source>1.7</source>
            <target>1.7</target>
      </configuration>
  </plugin>
</plugins>
</build>
<dependencies>
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
</dependency>
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-server</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-java</artifactId>
        <version>2.29.0</version>
    </dependency>
    <dependency>
        <groupId>org.seleniumhq.selenium</groupId>
        <artifactId>selenium-server</artifactId>
        <version>2.29.0</version>
    </dependency>
</dependencies>
</dependencyManagement>
</project>