Hello,
I am rather new to testNG (6.9.9) and am using it with Selenium WebDriver (2.53.1). I am having a problem formatting the output using Reporter.log. The output in the generated detailed report looks fine. Please see the included image file formatted_output_in_report_html. Then when I look at the report in the index.html file called Reporter Output, the same formatting is not replicated. Please see the image file unformatted_output_in_reporter_output. The format that I see in the console when running my tests looks fine as well. Please see the included image file correctly_formatted_strings_to_console. I understand HTML tags can be added to the Reporter.log(...) statements, but when I do this, I see HTML tags in the console output and the output in the generated detailed report takes on these new tags, which messes up the formatting. I have tried using the Reporter.log(), log(java.lang.String s, int level, boolean logToStandardOut) to send a text only message to the console and another HTML message to the HTML generated reports, with Reporter.log("This is a test, 10, true) and Reporter.log("This is a test", 1, false), but this results in two strings being written to the HTML reports and one to the console when verbosity is set to 9 in testng.xml file. This seems like a simple problem, but I have not found a way to get the formatting of the Reporter output to be the same as the detailed report. Do you have any advise on how this problem can be resolved?
Thanks,
-ingmar