Skip to content

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

@p00rni

Description

@p00rni

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions