use of com.qaprosoft.carina.core.foundation.report.TestResultItem in project carina by qaprosoft.
the class CarinaListener method printExecutionSummary.
private void printExecutionSummary(List<TestResultItem> tris) {
Messager.INFORMATION.info("**************** Test execution summary ****************");
int num = 1;
for (TestResultItem tri : tris) {
String failReason = tri.getFailReason();
if (failReason == null) {
failReason = "";
}
if (!tri.isConfig()) {
String reportLinks = !StringUtils.isEmpty(tri.getLinkToScreenshots()) ? "screenshots=" + tri.getLinkToScreenshots() + " | " : "";
reportLinks += !StringUtils.isEmpty(tri.getLinkToLog()) ? "log=" + tri.getLinkToLog() : "";
Messager.TEST_RESULT.info(String.valueOf(num++), tri.getTest(), tri.getResult().toString(), reportLinks);
}
}
}
Aggregations