Class AppiumServerPool
- java.lang.Object
-
- net.serenitybdd.core.webdriver.appium.AppiumServerPool
-
public class AppiumServerPool extends Object
The Appium Service pool is responsible for starting up and shutting down Appium servers. A server is associated with a device.- If a single deviceName is specified along with a hub, the specified hub will be used - If only a single deviceName is specified, the default hub will be used - If a set of device names are specified, a new service will be started for each device If the appium.hub property is defined, the service is assumed to be running before the test starts. Otherwise, a new server will be started.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AppiumServerPool(EnvironmentVariables environmentVariables)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<URL>
getActiveServersInCurrentThread()
static AppiumServerPool
instance()
static AppiumServerPool
instance(EnvironmentVariables environmentVariables)
void
shutdownAllServersRunningOnThread(Thread thread)
URL
urlFor(String deviceName)
-
-
-
Constructor Detail
-
AppiumServerPool
protected AppiumServerPool(EnvironmentVariables environmentVariables)
-
-
Method Detail
-
instance
public static AppiumServerPool instance(EnvironmentVariables environmentVariables)
-
instance
public static AppiumServerPool instance()
-
shutdownAllServersRunningOnThread
public void shutdownAllServersRunningOnThread(Thread thread)
-
-