Not able to run cucumber with testNG | Selenium Forum
S
Siddharth Rathod Posted on 11/08/2019

Hi ,

 Not able to run Cucumber test with TestNG.

PFA the project for the same.Please reply ASAP.


S
Siddharth Rathod Replied on 18/08/2019

Hi ,

Any update on above issue as I am stuck and not able to proceed.

Please reply ASAP.

 

 


A
Ashish Thakur Replied on 19/09/2019

I imported your project and noticed that the project is not executing with JUnit as well.

I would suggest you watch the videos again carefully and then configure your project accordingly.


S
Siddharth Rathod Replied on 19/09/2019

I have made the project according to videos only.

You can only check and compare with your code because i have followed your videos and made the project.

Please let me know where the problem is because i have spent enough time on it to find the issue.


A
Ashish Thakur Replied on 20/09/2019

What exact issue are you facing?

Imported your project and noticed a configuration issue.

Please add the following in your pom.xml before '<dependencies>' tag and after '</version>

<properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	<maven.compiler.source>1.8</maven.compiler.source>
	<maven.compiler.target>1.8</maven.compiler.target>
</properties>

Additionally, remove the TestNG library from project setup. You have already specified TestNG dependency in your pom.xml.

Apart from this, the project is running well. See the output below.

Responsive image

The failure is because of the assertion used by you.