All Downloads are FREE. Search and download functionalities are using the official Maven repository.

at.willhaben.willtest.util.RemoteSelectionUtils Maven / Gradle / Ivy

There is a newer version: 3.1.10
Show newest version
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