use of com.axway.ats.log.report.model.ReportExtactor in project ats-framework by Axway.
the class LogReportMailer method send.
/**
* Email the report
*/
@PublicAtsApi
public void send() {
// get runs from log database
ReportExtactor reportExtactor = new ReportExtactor(dbHost, dbName, dbUser, dbPassword);
List<RunWrapper> runs = reportExtactor.extract(runIds);
// format the report
ReportFormatter reportFormatter = new ReportFormatter(runs, mailSubject, dbHost, dbName, testExplorerWebPort, testExplorerInstanceName);
// send report by mail
MailReportSender mailReportSender = new MailReportSender(reportFormatter.getDescription(), reportFormatter.toHtml());
mailReportSender.send();
}
Aggregations