0

Getting an error for test NG

Error Log:

    [Error] java.lang.NullPointerException
        at cucumber.api.testng.AbstractTestNGCucumberTests.features(AbstractTestNGCucumberTests.java:29)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:104)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:55)
    at org.testng.internal.MethodInvocationHelper.invokeMethodNoCheckedException(MethodInvocationHelper.java:45

My Test Runner settings:

@CucumberOptions(plugin = { "pretty", "html:target/cucumber", "json:target_json/cucumber.json",
        "junit:taget_junit/cucumber.xml", "com.cucumber.listener.ExtentCucumberFormatter"
        }
features = "C:\\AutomationNeon1\\atom\\src\\main\\features\\smascheduler\\new-schedule.feature", glue = {
                "com.morrisons.automation.stepdefs.sma" })
zzz
  • 497
  • 3
  • 14
  • 32

1 Answers1

1

The issue was duplicate step definition methods, it got fixed when i removed duplicate method. i have ignored Junit logs, and it was printed in the same.

zzz
  • 497
  • 3
  • 14
  • 32