Get log message from Assertions

I'm integrating html-reports to our test framework using Extent Report library (version 4).

For that purpose I wrote a wrapper, that encapsulates our default TestNG logger (for the console output) and ExtentReport logger (ExtentTest.log, to collect data for html-report).

We use TestNg as our testing framework.

Having an issue capturing log messages from failed assertions (both soft and hard Assertions) to display it in html-report, they go only to the console log.

What would be the possible solution to capture those Assert log messages to show them in html-report?

I can't...

Read More »

By: StackOverFlow - 6 days ago

Related Posts