Module 9 - Failure to generate XSLT report due to non-resolv | Selenium Forum
M
Posted on 04/12/2015
In pom.xml, the link to plugin repository is old and not working. Could you send/point me to the new link so that I can retest the reports. The URL that I am using is
<url>https://github.com/cosminaru/reporty-ng/raw/master/dist/maven</url>

URL giving 404 - thus explains why no reports are generating

Actual error

"[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:si
te (default-site) on project learntestng: failed to get report for org.reportyng
:reporty-ng: Plugin org.reportyng:reporty-ng:1.2 or one of its dependencies coul
d not be resolved: Failure to find org.reportyng:reporty-ng:jar:1.2 in http://ma
ven.jahia.org/maven2 was cached in the local repository, resolution will not be
reattempted until the update interval of reporty-ng has elapsed or updates are f
orced -> [Help 1]"

Could you please provide valid pom.xml file that could generate xslt reports

M
Replied on 04/12/2015

Also the same pom.xml file is used for Mod 20 and 21, so this is a kind of blocker for me/everyone whose also practicing the code in parallel

pom.xml

[code:3nhee1l4]<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>com.learntestng</groupId>
<artifactId>learntestng</artifactId>
<version>1</version>
<packaging>jar</packaging>

<name>learntestng</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.1.1</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
</suiteXmlFiles>
<!-- Skip the normal tests, we'll run them in the integration-test phase -->
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<!-- TestNG-xslt related configuration. -->
<plugin>
<groupId>org.reportyng</groupId>
<artifactId>reporty-ng</artifactId>
<version>1.2</version>

<configuration>
<!-- Output directory for the testng xslt report -->
<outputdir>/target/testng-xslt-report</outputdir>
<sorttestcaselinks>true</sorttestcaselinks>
<testdetailsfilter>FAIL,SKIP,PASS,CONF,BY_CLASS</testdetailsfilter>
<showruntimetotals>true</showruntimetotals>
</configuration>
</plugin>
</plugins>
</reporting>

<pluginRepositories>
<pluginRepository>
<id>reporty-ng</id>
<url>https://github.com/cosminaru/reporty-ng/raw/master/dist/maven</url> <[color=#FF0000]- URL not exist[/color]
</pluginRepository>
</pluginRepositories>

</project>[/code:3nhee1l4]


M
Replied on 16/06/2016

what is the update on this? Even i am unable to generate report XSLT


M
Replied on 16/06/2016

reporty-ng is old/deprecated

Refer:
http://qtpselenium.com/selenium-tutorial/forum/viewtopic.php?f=20&t=1280&p=4500&hilit=reporty+ng#p4500