Not able to run cucumber with testNG | Selenium Forum

Not able to run cucumber with testNG | Selenium Forum

Not able to run cucumber with testNG

Not able to run Cucumber test with TestNG.

PFA the project for the same.Please reply ASAP.

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

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.

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.

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>

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.

The failure is because of the assertion used by you.

We offer online selenium and UFT/QTP training. The course is very comprehensive and covers every aspect of automation testing with UFT/QTP and selenium. All types of frameworks are covered in depth - data driven framework, hybrid framework, page object model with a live project

© 2020 Whizdom Trainings. All rights Reserved - Powered by Whizdom Trainings

Recommended articles