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 Details

  • Method Details

    • instance

      public static AppiumServerPool instance​(EnvironmentVariables environmentVariables)
    • instance

      public static AppiumServerPool 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()