How do I get my TestNG report to show a link to the console output from the report? I've seen TestNG do it before but a project I am working on right now isn't showing any of the output and I can't find any information anywhere that says how to turn it on. I tried setting the "verbose" option in the testng.xml suite tag but that didn't have any effect at all.
if you want to print logs in TestNG report you can always use Reporter. log(""). Log4J is very easy to configure with the help of xml property file.
please use below line to show console log while writing test using testNG.
Reporter.log( "Message", true );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With