From d6325c701f30c553d9482df255001429495feaee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dogancan=20K=C4=B1n=C4=B1k?= Date: Fri, 4 Oct 2024 12:14:47 +0300 Subject: [PATCH] Update ResultAnalyzer.java --- src/test/java/ResultAnalyzer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/ResultAnalyzer.java b/src/test/java/ResultAnalyzer.java index aa0a58d..2b31edc 100644 --- a/src/test/java/ResultAnalyzer.java +++ b/src/test/java/ResultAnalyzer.java @@ -54,7 +54,7 @@ public void afterAll(ExtensionContext context) throws Exception { long success = summary.get(TestResultStatus.SUCCESSFUL) != null ? summary.get(TestResultStatus.SUCCESSFUL) : 0; long failure = summary.get(TestResultStatus.FAILED) != null ? summary.get(TestResultStatus.FAILED) : 0; - long score = success / (success + failure); + double score = (double) success / (success + failure); String userId = "999999"; JSONObject json = new JSONObject();