I have the following format on my 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 test descriptions, and by that generating a test documentation.
I tried to somehow include ITestNGMethod getDescription()
to a afterInvocation(IInvokedMethod method, ITestResult testResult)
so after each method is run, the description is returned, but with no success.
Has anyone tried something similar?