java - Console output to HTML File -


basically i'm running automated tests using testng.

i'm using itestlistener give real-time results of tests status outputted console.

is there anyway of outputting information on console html file can view progress html file?

i'm planning create html style report own benefit more possible place output specific parts of html report create?

overall i'm trying achieve html file can open on chrome while tests running , automatic refresh can view progress of tests.

i came solution uses small amount of javascript update browser window: major file be:

<html> <head>     <script>         function loadcontentfile()         {             document.getelementbyid("content").innerhtml='<objecttype="type/html" data="content.html"></object>';         }         window.onload = setinterval(loadcontentfile, 1000);     </script> </head> <body>     <div id="content"></div> </body> </html> 


edit:
java program write file called content.html. have done before. nothing changes there. "magic" happens calling index.html instead of content.html. index.html file when opened browser periodically loads content of content.html file realising automatic reload of page.

conclusion:
have folder containing index.html , content.html. browser calls index.html. java program writes content.html.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -