Skip to content

Commit

Permalink
Fix ExecutionSummaryReport (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedHazem95 authored Aug 9, 2023
1 parent ee74768 commit a72e1c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ public static void generateExecutionSummaryReport(int passed, int failed, int sk
}

private static String createReportMessage(int passed, int failed, int skipped, long startTime, long endTime, StringBuilder detailsBuilder) {
int total = passed + failed + skipped;
float total = passed + failed + skipped;
var report = HTMLHelper.EXECUTION_SUMMARY.getValue()
.replace("${LOGO_URL}", SHAFT_LOGO_URL)
.replace("${DATE}", new SimpleDateFormat("dd/MM/yyyy").format(endTime))
.replace("${START_TIME}", new SimpleDateFormat("HH:mm:ss").format(startTime))
.replace("${END_TIME}", new SimpleDateFormat("HH:mm:ss").format(endTime))
.replace("${TOTAL_TIME}", ReportManagerHelper.getExecutionDuration(startTime, endTime))
.replace("${CASES_TOTAL}", String.valueOf(total))
.replace("${CASES_TOTAL}", String.valueOf((int)total))
.replace("${CASES_PASSED}", String.valueOf(passed))
.replace("${CASES_FAILED}", String.valueOf(failed))
.replace("${CASES_SKIPPED}", String.valueOf(skipped))
Expand Down

0 comments on commit a72e1c0

Please sign in to comment.