Class Tunnel

java.lang.Object
com.lambdatest.tunnel.Tunnel

public class Tunnel extends Object
Creates and manages a secure tunnel connection to LambdaTest.
  • Constructor Details

    • Tunnel

      public Tunnel() throws com.lambdatest.tunnel.TunnelException
      Throws:
      com.lambdatest.tunnel.TunnelException
  • Method Details

    • start

      public Boolean start(Map<String,String> options)
      Starts Tunnel instance with options
      Parameters:
      options - Options for the Tunnel instance
    • verifyTunnelStarted

      public void verifyTunnelStarted(Map<String,String> options, int infoAPIPortValue) throws com.lambdatest.tunnel.TunnelException
      Throws:
      com.lambdatest.tunnel.TunnelException
    • stop

      public void stop() throws Exception
      Throws:
      Exception
    • clearTheFile

      public static void clearTheFile() throws IOException
      Throws:
      IOException
    • stopTunnel

      public void stopTunnel() throws com.lambdatest.tunnel.TunnelException
      Throws:
      com.lambdatest.tunnel.TunnelException
    • passParametersToTunnel

      public String passParametersToTunnel(Map<String,String> options)
    • runCommand

      public void runCommand(String command) throws IOException
      Throws:
      IOException