Class AppiumServerPool
java.lang.Object
net.serenitybdd.core.webdriver.appium.AppiumServerPool
public class AppiumServerPool
extends java.lang.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
Modifier and Type Method Description java.util.Set<java.net.URL>
getActiveServersInCurrentThread()
static AppiumServerPool
instance()
static AppiumServerPool
instance(EnvironmentVariables environmentVariables)
void
shutdownAllServersRunningOnThread(java.lang.Thread thread)
java.net.URL
urlFor(java.lang.String deviceName)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AppiumServerPool
-
-
Method Details
-
instance
-
instance
-
urlFor
public java.net.URL urlFor(java.lang.String deviceName) -
shutdownAllServersRunningOnThread
public void shutdownAllServersRunningOnThread(java.lang.Thread thread) -
getActiveServersInCurrentThread
public java.util.Set<java.net.URL> getActiveServersInCurrentThread()
-