From a72e1c0a5617ad12ef9bdef3267cfc8e8394ed53 Mon Sep 17 00:00:00 2001 From: Mohamed Hazem <38187593+mohamed2234@users.noreply.github.com> Date: Wed, 9 Aug 2023 17:23:46 +0300 Subject: [PATCH] Fix ExecutionSummaryReport (#1225) --- .../com/shaft/tools/io/internal/ExecutionSummaryReport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/shaft/tools/io/internal/ExecutionSummaryReport.java b/src/main/java/com/shaft/tools/io/internal/ExecutionSummaryReport.java index b9d472d0a3e..f1ceb7a99d9 100644 --- a/src/main/java/com/shaft/tools/io/internal/ExecutionSummaryReport.java +++ b/src/main/java/com/shaft/tools/io/internal/ExecutionSummaryReport.java @@ -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))