I'm trying to use the testName-attribute from @Test for my ReportNG html-output.
Unfortunately it says:
/**
* The name of the test this test class should be placed in. This
* attribute is ignore if @Test is not at the class level.
*/
public String testName() default "";
So the testName is always empty.
What needs to be changed to NOT ignore this attribute on method-level?
I'm using TestNG .xml suites to run my tests, if that's important to know.
Happy for any hint, cheers!
It makes no sense to specify this at the method level since the name of the test applies to the entire class.