ru.tinkoff.testops.droidherd.DroidherdConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of droidherd-client Show documentation
Show all versions of droidherd-client Show documentation
A library that parallelizes Android Test execution to all connected devices and emulators
package ru.tinkoff.testops.droidherd;
import ru.tinkoff.testops.droidherd.auth.AuthProvider;
import java.util.Collections;
import java.util.Map;
import java.util.StringJoiner;
public class DroidherdConfig {
public final String clientType;
public final Map emulatorParameters;
public final int minimumRequiredEmulators;
public final AuthProvider authProvider;
public final Map emulators;
public final String serviceUrl;
public DroidherdConfig() {
this(null, Collections.emptyMap(), 0, null, Collections.emptyMap(), null);
}
public DroidherdConfig(
String clientType,
Map emulatorParameters,
Integer minimumRequiredEmulators,
AuthProvider authProvider,
Map emulators,
String serviceUrl) {
this.clientType = clientType;
this.emulatorParameters = emulatorParameters;
this.minimumRequiredEmulators = minimumRequiredEmulators;
this.authProvider = authProvider;
this.emulators = emulators;
this.serviceUrl = serviceUrl;
}
@Override
public String toString() {
return new StringJoiner(", ", DroidherdConfig.class.getSimpleName() + "[", "]")
.add("clientType='" + clientType + "'")
.add("emulatorParameters=" + emulatorParameters)
.add("minimumRequiredEmulators=" + minimumRequiredEmulators)
.add("authProvider=" + authProvider)
.add("emulators=" + emulators)
.add("emulatorFarmEndpoint='" + serviceUrl + "'")
.toString();
}
public boolean isConfigured() {
return serviceUrl != null && !emulators.isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy