Search in sources :

Example 6 with TestResultItem

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);
        }
    }
}
Also used : TestResultItem(com.qaprosoft.carina.core.foundation.report.TestResultItem)

Aggregations

TestResultItem (com.qaprosoft.carina.core.foundation.report.TestResultItem)6 TestResultType (com.qaprosoft.carina.core.foundation.report.TestResultType)1 ITestResult (org.testng.ITestResult)1