【发布时间】:2012-11-07 15:59:57
【问题描述】:
我正在尝试将 @Test 中的 testName 属性用于我的 ReportNG html 输出。
不幸的是它说:
/**
* 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 "";
所以 testName 始终为空。
需要更改哪些内容才能在方法级别不忽略此属性?
我正在使用 TestNG .xml 套件来运行我的测试,如果知道这一点很重要的话。
很高兴任何提示,干杯!
【问题讨论】:
标签: java methods annotations testng reportng