Tuesday, August 18, 2015

Separate ReportNG Report Table to send through mail


String filePath = System.getProperty("user.dir")
     + "\\test-output\\html\\overview.html";
   Document document = Jsoup.parse(new File(filePath), "UTF-8");
   Elements tableContentElement = document
     .select("table[class=overviewTable]");
   String tableHtml = tableContentElement.html();
   String[] msgBody = new String[] { config.getProperty("emailBody"),
     tableHtml, config.getProperty("emailSignature") };

No comments:

Post a Comment