0

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

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

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

谢谢拉朱

4

1 回答 1

0

对于测试结果报告,我只需将 test-output 目录复制到一个 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>
于 2013-03-15T21:45:57.353 回答