I have the following format in testNG tests:
@Test(alwaysRun = true, dependsOnMethods = "testStep_1", description = "Enter the names, and verify that they are appearing correctly ")
public void testStep_2() throws Exception{
}
Is there a way to implement something that could read all the test descriptions and thereby create test documentation. I tried to somehow include ITestNGMethod getDescription()in afterInvocation(IInvokedMethod method, ITestResult testResult), so after running each method, the description returns, but without success. Has anyone tried something like this?
source
share