I am working on a project where I need to invoke TestNG programatically(using data providers). Things are fine except that in the report, we are getting the name of the @Tes
Try implementing the org.testng.ITest interface that requires a getTestName() method. This way reporting handles the returned value properly.