at.willhaben.willtest.util.RemoteSelectionUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core classes with as few dependencies as possible
package at.willhaben.willtest.util;
public class RemoteSelectionUtils {
private static final String DEFAULT_REMOTE = "";
private static final boolean REMOTE = true;
public static final String IS_REMOTE = "remote";
public static final String REMOTE_PLATFORM = "remote.platform";
public static Boolean getRemoteIsSet() {
return Boolean.valueOf(Environment.getValue(IS_REMOTE, DEFAULT_REMOTE));
}
public static boolean isRemote() {
return getRemoteIsSet().equals(REMOTE);
}
public static RemotePlatform getRemotePlatform() {
return RemotePlatform.valueOf(Environment.getValue(REMOTE_PLATFORM, RemotePlatform.GRID.toString()));
}
public enum RemotePlatform {
GRID,
BROWSERSTACK
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy