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);
}
Aggregations