Actually if @afterMethod failes the logs go to the report.
This is also a kind of show stopper for us right now, sine we are
using smth like this:
@AfterMethod(alwaysRun = true)
protected void afterTest(final ITestResult result,
final ITestContext context) throws Exception {
Reporter.log("IN AFTERMETHOD");
if (!result.isSuccess() || result.getThrowable() != null) {
Reporter.log("TC X FAILED, see additional info in file Y");
} else {
Reporter.log("TC X PASSED");
}
}
But if there was no error nothing will be reported :(
I guess there is no workaround for this as of now?
THX and BR;
MaC
On 25 Jan., 20:44, Cédric Beust ♔ <
ced...@beust.com> wrote:
> Hi Sébastien,
>
> Kind of. The logs are indexed by methods, and since the (current) reports
> only display the test methods in the main view, anything logged in a method
> that's not a test method won't appear there.
>
> I agree it would make sense to add the logs for some configuration methods.
>
> --
> Cédric
>
> 2012/1/25 Sébastien Bouffard <
sebweb1...@gmail.com>