Jenkins is not executing any tests

5 views
Skip to first unread message

sven....@tvsmiles.de

unread,
Oct 25, 2016, 9:59:39 AM10/25/16
to Jenkins Users
Hi,

its my first try with getting tests running in jenkins (and writing test automation in general).

i've written a Test in Intellij, its running fine there.  I have a .pom file and a testng.xml and of course a source file .

my problem now is that jenkins builds successfull but no tests get executed.

my .pom file looks like :

<?xml version="1.0" encoding="UTF-8"?>
<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>tvsmiles</groupId>
<artifactId>rontastic</artifactId>
<version>1.0-SNAPSHOT</version>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.53.1</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.8</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<includes>
<include>/Users/Inditronic/IdeaProjects/rtastictest/testng.xml</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>






</project>

My testng.xml  looks like :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="Suite1">
<test name="rontatstic" >
<classes>
<class name="rtastictest" />
</classes>
</test>
</suite>

in my rtastictest java file  have a @BeforeClass , @Test  and @AfterClass.

i hope someone has a clue what i am doing wrong. why is  jenkins not executing any test.
Reply all
Reply to author
Forward
0 new messages