Class BrowserStackLocalRunner

java.lang.Object
org.arquillian.drone.browserstack.extension.local.BrowserStackLocalRunner

public class BrowserStackLocalRunner extends Object
Is responsible for starting a BrowserStackLocal binary
  • Method Details

    • getBrowserStackLocalInstance

      public static BrowserStackLocalRunner getBrowserStackLocalInstance()
      Returns an instance of BrowserStackLocalRunner. If there has been already created, returns this one, otherwise creates and returns a new one - behaves like singleton
      Returns:
      An instance of BrowserStackLocalRunner
    • runBrowserStackLocal

      public void runBrowserStackLocal(String accessKey, String additionalArgs, String localBinary) throws BrowserStackLocalException
      Indirectly runs BrowserStackLocal binary. In case that the binary has been already run, then does nothing.
      Parameters:
      accessKey - An accessKey the binary should be ran with
      additionalArgs - additional arguments
      localBinary - Path to a local binary of the BrowserStackLocal. If none, then it will be downloaded.
      Throws:
      BrowserStackLocalException - when something bad happens during running BrowserStackLocal binary