diff --git a/.travis.yml b/.travis.yml index 7723575ea2..b6eb374ef0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: java jdk: - - oraclejdk8 + - openjdk8 sudo: required diff --git a/src/main/java/de/zalando/ep/zalenium/proxy/BrowserStackRemoteProxy.java b/src/main/java/de/zalando/ep/zalenium/proxy/BrowserStackRemoteProxy.java index bf4b2b8e5e..2169de3cea 100644 --- a/src/main/java/de/zalando/ep/zalenium/proxy/BrowserStackRemoteProxy.java +++ b/src/main/java/de/zalando/ep/zalenium/proxy/BrowserStackRemoteProxy.java @@ -20,7 +20,7 @@ public class BrowserStackRemoteProxy extends CloudTestingRemoteProxy { private static final String BROWSER_STACK_URL = getEnv().getStringEnvVariable("BROWSER_STACK_URL", "http://hub-cloud.browserstack.com:80"); - private static final String BROWSER_STACK_ACCOUNT_INFO = "https://www.browserstack.com/automate/plan.json"; + private static final String BROWSER_STACK_ACCOUNT_INFO = "https://api.browserstack.com/automate/plan.json"; private static final Logger logger = LoggerFactory.getLogger(BrowserStackRemoteProxy.class.getName()); private static final String BROWSER_STACK_USER = getEnv().getStringEnvVariable("BROWSER_STACK_USER", ""); private static final String BROWSER_STACK_KEY = getEnv().getStringEnvVariable("BROWSER_STACK_KEY", ""); @@ -85,7 +85,7 @@ public String getCloudTestingServiceUrl() { @Override public TestInformation getTestInformation(String seleniumSessionId) { // https://BS_USER:BS_KEY@www.browserstack.com/automate/sessions/SELENIUM_SESSION_ID.json - String browserStackBaseTestUrl = "https://www.browserstack.com/automate/sessions/"; + String browserStackBaseTestUrl = "https://api.browserstack.com/automate/sessions/"; String browserStackTestUrl = browserStackBaseTestUrl + String.format("%s.json", seleniumSessionId); for (int i = 0; i < 5; i++) { try { diff --git a/src/test/java/de/zalando/ep/zalenium/proxy/BrowserStackRemoteProxyTest.java b/src/test/java/de/zalando/ep/zalenium/proxy/BrowserStackRemoteProxyTest.java index f7499f3e59..83ae4ef9d0 100644 --- a/src/test/java/de/zalando/ep/zalenium/proxy/BrowserStackRemoteProxyTest.java +++ b/src/test/java/de/zalando/ep/zalenium/proxy/BrowserStackRemoteProxyTest.java @@ -175,7 +175,7 @@ public void testInformationIsRetrievedWhenStoppingSession() throws IOException { TestUtils.ensureRequiredInputFilesExist(temporaryFolder); CommonProxyUtilities commonProxyUtilities = TestUtils.mockCommonProxyUtilitiesForDashboardTesting(temporaryFolder); Environment env = new Environment(); - String mockTestInformationUrl = "https://www.browserstack.com/automate/sessions/77e51cead8e6e37b0a0feb0dfa69325b2c4acf97.json"; + String mockTestInformationUrl = "https://api.browserstack.com/automate/sessions/77e51cead8e6e37b0a0feb0dfa69325b2c4acf97.json"; when(commonProxyUtilities.readJSONFromUrl(mockTestInformationUrl, env.getStringEnvVariable("BROWSER_STACK_USER", ""), env.getStringEnvVariable("BROWSER_STACK_KEY", ""))).thenReturn(informationSample);