【发布时间】:2017-10-23 16:57:39
【问题描述】:
我的 testNG 测试采用以下格式:
@Test(alwaysRun = true, dependsOnMethods = "testStep_1", description = "Enter the names, and verify that they are appearing correctly ")
public void testStep_2() throws Exception{
}
有没有办法实现可以读取所有测试描述并生成测试文档的方法。
我试图以某种方式将ITestNGMethod getDescription() 包含到afterInvocation(IInvokedMethod method, ITestResult testResult) 中,所以在每个方法运行后,都会返回描述,但没有成功。
有人试过类似的吗?
【问题讨论】:
标签: java automation testng