ITestResult result = Reporter.getCurrentTestResult();
List<String> output = Reporter.getOutput(result)
I have done some silly stuffs, created a web application with Struts2 and using selenium to automate the browser actions and TestNG for reporting and managing multi-threading.Than I wanted to fetch the logs generated by TestNG Reporter specific to the tests I am running, so I have used:Reporter.getOutput()for accessing the logs and it is working fine for me.But the problem is, it is returning me all the logs which includes the results of 10 tests I have executed before this. It is keep on appending the logs to the same Reporter and returns me the result.Please suggest some better way to manage the logs, so that I can access them based on the automated process going on.Thanks!--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--