Skip to content

Commit

Permalink
Update ResultAnalyzer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogancan94 authored Mar 11, 2024
1 parent 594e765 commit 7f2c289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/ResultAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

public class ResultAnalyzer implements TestWatcher, AfterAllCallback {
private List<TestResultStatus> testResultsStatus = new ArrayList<>();
private static final String taskId = "138";

private enum TestResultStatus {
SUCCESSFUL, ABORTED, FAILED, DISABLED;
Expand Down Expand Up @@ -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();
Expand All @@ -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);
Expand Down

0 comments on commit 7f2c289

Please sign in to comment.