我正在嘗試使用Maven安裝程序生成TestNG XSLT報告以進行硒測試。Maven TestNG XSLT插件問題 - 插件未找到錯誤
http://code.google.com/p/testng-xslt/
我配置了指定如上Maven插件的POM文件,但我總是得到插件未找到錯誤。我得到了默認的TestNT報告,而不是帶有圖表的XSLT報告。用於首先你爲什麼要使用這樣的老maven-surefire-plugin版本的測試
<modelVersion>4.0.0</modelVersion>
<groupId>uk.co.newsint.acs.admin.test</groupId>
<artifactId>ACS</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.1.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.25.0</version>
</dependency>
</dependencies>
<pluginRepositories>
<pluginRepository>
<id>testng-xslt-plugin</id>
<url>http://www.cosminaru.ro/maven/</url>
</pluginRepository>
</pluginRepositories>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.testng.xslt</groupId>
<artifactId>testng-xslt-plugin</artifactId>
<version>1.1</version>
<configuration>
<showRuntimeTotals>true</showRuntimeTotals>
<sortTestCaseLinks>true</sortTestCaseLinks>
<testDetailsFilter>FAIL,PASS,SKIP,CONF</testDetailsFilter>
</configuration>
</plugin>
</plugins>
</reporting>