TestRunner File for Cucumber is not getting executed and not throwing any error

80 views Asked by At

Whenever I am executing this "TestNGTestRunner" file, the file don't get executed and also not populates/throws any error. This was working fine till sometime, but suddenly it started getting this issue.

enter image description here

But when I execute the cucumber files individually as shown in below image I am getting the correct result. enter image description here

I am expecting that Cucumber files should get executed using TestRunner files

1

There are 1 answers

0
akshaykinhikar On

I was able to fix the above issue, as the "dryRun = true" hence I was getting the above error of TestRunner File for Cucumber not getting executed and not throwing any error.

@CucumberOptions( features="src\test\java\CucumberFiles\CreateNewCampaigns.feature", glue={"StepDefinitions"}, monochrome=true, dryRun=true, plugin= {"pretty","html:cucumberreports\cucumber.html"}, tags = "@NewCampaignsCreation" ) public class TestNGTestRunner extends AbstractTestNGCucumberTests{ }