diff --git a/src/main/java/com/epam/reportportal/saucelabs/GetLogsCommand.java b/src/main/java/com/epam/reportportal/saucelabs/GetLogsCommand.java index 378bc42..d1f89c4 100644 --- a/src/main/java/com/epam/reportportal/saucelabs/GetLogsCommand.java +++ b/src/main/java/com/epam/reportportal/saucelabs/GetLogsCommand.java @@ -24,7 +24,6 @@ import com.epam.reportportal.saucelabs.client.RestClientBuilder; import com.epam.reportportal.saucelabs.model.SauceProperties; import com.epam.ta.reportportal.entity.integration.Integration; -import com.saucelabs.saucerest.model.jobs.JobAssets; import java.util.Map; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; @@ -57,9 +56,7 @@ public Object executeCommand(Integration integration, Map params private Object getWebDriverLogs(RestTemplate restTemplate, SauceProperties sp) { try { - JobAssets jobAssets = - restTemplate.getForObject(getJobAssetsUrl(sp), JobAssets.class); - String url = getJobAssetsUrl(sp) + "/" + jobAssets.sauceLog; + String url = getJobAssetsUrl(sp) + "/log.json"; return restTemplate.getForObject(url, Object.class); } catch (HttpClientErrorException httpException) {