I\'m using testng maven and selenium to run my tests, currently I have the following testng.xml file
Looks like the problem is with the &listeners and &class
Just to avoid confusion and make it easier for some one who is new to the Config edit option etc attaching a snap for getting it done in intellij.
So as answered by- Mr Krishnan M. : Go to Edit Config for your Cucumber TestNGRunner class, then we have to add another argument to the VM options as below-
How to Edit Run Config
How to add >VM argument: "-Dtestng.dtd.http=true"