Maven POM.xml

pom1

pom2

Text : 

<project xmlns=”http://maven.apache.org/POM/4.0.0&#8243; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”&gt; <modelVersion>4.0.0</modelVersion>
<groupId>TestConfig</groupId> <artifactId>TestConfig</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging>
<name>TestConfig</name> <url>http://maven.apache.org</url&gt;
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties>

<build> <plugins> <!– Compiler plug-in –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${jdk.level}</source> <target>${jdk.level}</target> </configuration> </plugin> <!– Below plug-in is used to execute tests –> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.18.1</version> <configuration> <suiteXmlFiles> <!– TestNG suite XML files –> <suiteXmlFile>testng.xml</suiteXmlFile> </suiteXmlFiles> </configuration> </plugin> </plugins> </build>

 

<dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.9.10</version> <scope>compile</scope> </dependency> </dependencies></project>

Configure Cucumber with Maven

What is Cucumber JUnit Runner?

It is important to recognize what Junit is, earlier than we start our discussion for Cucumber JUnit Runner. JUnit is an open source unit trying out framework for the Java programming language. JUnit has been crucial in the development of test-driven development, and is one of a family of unit testing frameworks, that is together referred to as xUnit that originated with SUnit.Read More »