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

com.testdroid.api.model.APIClientSideTestConfig Maven / Gradle / Ivy

There is a newer version: 3.34.0
Show newest version
package com.testdroid.api.model;

import org.apache.commons.lang3.EnumUtils;

import jakarta.xml.bind.annotation.XmlType;
import java.io.Serializable;
import java.util.Optional;

/**
 * @author Michał Szpruta 
 */
public class APIClientSideTestConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    private String appiumVersion;

    private String browserName;

    private CapabilitiesSchema capabilitiesSchema;

    private String externalId;

    private String hookURL;

    private String location;

    private String osVersion;

    private String platform;

    private String screenResolution;

    private String seleniumVersion;

    private Target target;

    private String testName;

    private String timeZone;

    private String version;

    private String brokerStepsEndpoint;

    @XmlType(namespace = "APIClientSideTestConfig")
    public enum CapabilitiesSchema {
        JSONWP,
        MIXED,
        W3C
    }

    @XmlType(namespace = "APIClientSideTestConfig")
    public enum Target {
        ANDROID,
        IOS,
        SELENDROID,
        SAFARI,
        CHROME,
        XCUITEST,
        DESKTOP;

        public static Optional fromString(String name) {
            return Optional.ofNullable(EnumUtils.getEnum(Target.class, name.toUpperCase()));
        }
    }

    public APIClientSideTestConfig() {
        // need for serialization/deserialization
    }

    public String getHookURL() {
        return hookURL;
    }

    public void setHookURL(String hookURL) {
        this.hookURL = hookURL;
    }

    public Target getTarget() {
        return target;
    }

    public void setTarget(Target target) {
        this.target = target;
    }

    public String getBrowserName() {
        return browserName;
    }

    public void setBrowserName(String browserName) {
        this.browserName = browserName;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getScreenResolution() {
        return screenResolution;
    }

    public void setScreenResolution(String screenResolution) {
        this.screenResolution = screenResolution;
    }

    public String getAppiumVersion() {
        return appiumVersion;
    }

    public void setAppiumVersion(String appiumVersion) {
        this.appiumVersion = appiumVersion;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getTestName() {
        return testName;
    }

    public void setTestName(String testName) {
        this.testName = testName;
    }

    public String getTimeZone() {
        return timeZone;
    }

    public void setTimeZone(String timeZone) {
        this.timeZone = timeZone;
    }

    public String getExternalId() {
        return externalId;
    }

    public void setExternalId(String externalId) {
        this.externalId = externalId;
    }

    public String getOsVersion() {
        return osVersion;
    }

    public void setOsVersion(String osVersion) {
        this.osVersion = osVersion;
    }

    public String getSeleniumVersion() {
        return seleniumVersion;
    }

    public void setSeleniumVersion(String seleniumVersion) {
        this.seleniumVersion = seleniumVersion;
    }

    public CapabilitiesSchema getCapabilitiesSchema() {
        return capabilitiesSchema;
    }

    public void setCapabilitiesSchema(CapabilitiesSchema capabilitiesSchema) {
        this.capabilitiesSchema = capabilitiesSchema;
    }

    public String getBrokerStepsEndpoint() {
        return brokerStepsEndpoint;
    }

    public void setBrokerStepsEndpoint(String brokerStepsEndpoint) {
        this.brokerStepsEndpoint = brokerStepsEndpoint;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy