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

ua.windriver.core.EnvironmentProperties Maven / Gradle / Ivy

Go to download

A Java client for the WinDriver Agent. This client allows you to automate Windows desktop applications using Java.

The newest version!
package ua.windriver.core;

import ua.windriver.util.PropertiesController;

public enum EnvironmentProperties {

    AGENT_URL_CONNECTION_TYPE,
    AGENT_URL_HOST,
    AGENT_URL_PORT,
    HTTP_REQUEST_READ_TIMEOUT,
    HTTP_REQUEST_CONNECT_TIMEOUT,
    CLIENT_LOG_LEVEL;


    private String getPropertyName() {
        return this.name().toLowerCase().replaceAll("_", ".");
    }

    public String readString() {
        return PropertiesController.getProperty(getPropertyName());
    }

    public Long readLong() {
        return Long.valueOf(PropertiesController.getProperty(getPropertyName()));
    }

    public Integer readInteger() {
        return Integer.valueOf(PropertiesController.getProperty(getPropertyName()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy