Module 9 Testng | Selenium Forum
M
Posted on 24/03/2016
How to run testng.xml-it is asing me to do Run as --I sen the screen shot below
In cmd it it not showing the output
**********test**********
**********sampletest************--I sent the screen shot--showing build success but not showing output
Any error in pomxml could you please check
my pom.xml--sent in documents.

M
Replied on 24/03/2016

<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.0-SNAPSHOT</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.9.10</version>
<scope>test</scope>

</dependency>

<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.52.0</version>
</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>

</pluginRepository>

</pluginRepositories>

</project>


M
Replied on 24/03/2016

add a version(2.19) to plugin sunfire reports.