diff --git a/src/test/java/ResultAnalyzer.java b/src/test/java/ResultAnalyzer.java index 8ef1c23..e44f658 100644 --- a/src/test/java/ResultAnalyzer.java +++ b/src/test/java/ResultAnalyzer.java @@ -19,6 +19,7 @@ public class ResultAnalyzer implements TestWatcher, AfterAllCallback { private List testResultsStatus = new ArrayList<>(); + private static final String taskId = "138"; private enum TestResultStatus { SUCCESSFUL, ABORTED, FAILED, DISABLED; @@ -54,7 +55,6 @@ public void afterAll(ExtensionContext context) throws Exception { long failure = summary.get(TestResultStatus.FAILED) != null ? summary.get(TestResultStatus.FAILED) : 0; long score = success / (success + failure); - String taskId = "1"; String userId = "999999"; JSONObject json = new JSONObject(); @@ -67,7 +67,7 @@ public void afterAll(ExtensionContext context) throws Exception { private void sendTestResult(String result) throws IOException { CloseableHttpClient httpClient = HttpClientBuilder.create().build(); try { - HttpPost request = new HttpPost("http://localhost:5001/nextgen/taskLog/saveJavaTasks"); + HttpPost request = new HttpPost("https://coursey-gpt-backend.herokuapp.com/nextgen/taskLog/saveJavaTasks"); StringEntity params = new StringEntity(result); request.addHeader("content-type", "application/json"); request.setEntity(params);