Search in sources :

Example 1 with NormalRecord

use of com.surenpi.autotest.report.record.NormalRecord 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)

Aggregations

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