ExtentReportsExample
ExtentReportsExample copied to clipboard
trying this in my proj which is based on cucumber testNG - 0 tests run
I implemented this in my proj which is based n cucumber and TestNG
o tests run - o failures - 0 passes Exception in thread "TestNG-test=Edge-1" java.lang.NullPointerException: Cannot invoke "com.aventstack.extentreports.ExtentTest.addScreenCaptureFromBase64String(String)" because the return value of "com.snoop.utils.extentReports.ExtentTestManager.getTest()" is null
i get this above exception
runner class has : @RunWith(Cucumber.class) @CucumberOptions( features = "src/test/resources/features",
glue = {"com.snoop.stepDefs" },
monochrome = true,
tags = "@yourMoney",
publish = true,
plugin = { "com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"
})
report gets generated with no results as no tests are run. kindly help with this.
thanks