Custom test method name in TestNG reports

后端 未结 6 1884
执念已碎
执念已碎 2020-12-05 05:10

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

6条回答
  •  难免孤独
    2020-12-05 05:21

    Try implementing the org.testng.ITest interface that requires a getTestName() method. This way reporting handles the returned value properly.

提交回复
热议问题