ExtentReportsExample icon indicating copy to clipboard operation
ExtentReportsExample copied to clipboard

trying this in my proj which is based on cucumber testNG - 0 tests run

Open p00rni opened this issue 3 years ago • 0 comments

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

p00rni avatar Sep 01 '21 22:09 p00rni