🏡 index : quine-global/webdriverio.git

export interface TunnelLauncherOptions {
    // The TestingBot API key which you can get for free, listed in our member area
    apiKey: string;

    // The TestingBot API secret which you can get for free, listed in our member area
    apiSecret: string;

    // More verbose output from the tunnel
    verbose?: boolean;

    // Port on which the tunnel Selenium relay will listen for
    // requests. Default 4445. (optional)
    'se-port'?: number;

    // Proxy host and port the tunnel can use to connect to an upstream proxy
    // e.g. "localhost:1234" (optional)
    proxy?: string,

    // a comma-separated list of domains that
    // will not go through the tunnel. (optional)
    'fast-fail-regexps'?: string,

    // Write logging output to this logfile (optional)
    logfile?: string,

    // Change the tunnel version - see versions on https://testingbot.com/support/other/tunnel/changelog.html
    // "1.19" // or 2.1 (Java 8)
    tunnelVersion?: string,

    // A unique identifier for this tunnel (optional)
    tunnelIdentifier?: string,

    // This file will be touched when the tunnel is ready for usage (optional)
    readyFile?: string,

    // Use a custom DNS server. For example: 8.8.8.8 (optional)
    dns?: string,

    // Do not start a local proxy (requires user provided proxy server on port 8087)
    noproxy?: string,

    // Set to true if you do not want TestingBot to override SSL traffic with its own certificate
    noBump?: boolean;

    // Set to true if you do not want to have static content cached
    noCache?: boolean;
}

export interface TestingbotOptions {
    /**
     * If true it runs the TestingBot Tunnel and opens a secure connection between a TestingBot
     * Virtual Machine running your browser tests.
     */
    tbTunnel?: boolean;
    /**
     * Apply TestingBot Tunnel options (e.g. to change port number or logFile settings). See
     * [this list](https://github.com/testingbot/testingbot-tunnel-launcher) for more information.
     */
    tbTunnelOpts?: TunnelLauncherOptions;
}

export interface TestingbotTunnel {
    close: (cb: unknown) => void;
}