Search in sources :

Example 1 with ExcelReport

use of com.surenpi.autotest.report.excel.model.ExcelReport in project selenium_java by sergueik.

the class ExcelReportWriter method write.

@Override
public void write(ExceptionRecord record) {
    NormalRecord normalRecord = record.getNormalRecord();
    ModelMapper mapper = new ModelMapper();
    ExcelReport excelReport = mapper.map(normalRecord, ExcelReport.class);
    excelReport.setDetail(record.getStackTraceText());
    fillReport(normalRecord, ReportStatus.EXCEPTION, excelReport);
    utils.export(excelReport);
}
Also used : NormalRecord(com.surenpi.autotest.report.record.NormalRecord) ExcelReport(com.surenpi.autotest.report.excel.model.ExcelReport) ModelMapper(org.modelmapper.ModelMapper)

Example 2 with ExcelReport

use of com.surenpi.autotest.report.excel.model.ExcelReport in project selenium_java by sergueik.

the class ExcelReportWriter method write.

@Override
public void write(NormalRecord normalRecord) {
    ExcelReport excelReport = new ModelMapper().map(normalRecord, ExcelReport.class);
    fillReport(normalRecord, ReportStatus.NORMAL, excelReport);
    utils.export(excelReport);
}
Also used : ExcelReport(com.surenpi.autotest.report.excel.model.ExcelReport) ModelMapper(org.modelmapper.ModelMapper)

Aggregations

ExcelReport (com.surenpi.autotest.report.excel.model.ExcelReport)2 ModelMapper (org.modelmapper.ModelMapper)2 NormalRecord (com.surenpi.autotest.report.record.NormalRecord)1