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