Skip to main content

Local testing with TestCloud in TestOps

This document shows you how to set up TestCloud Tunnel in TestOps and perform local testing.

If your application under test is locally hosted in a private network, you can set up a tunnel for TestCloud server to access the application. See: Local testing with TestCloud.

  1. Download and configure the TestCloud Tunnel.
  2. Run tests with the Private/Local Testing option enabled.

Configure TestCloud Tunnel​

Requirements
  • Make sure you have the Account Admin or System Admin role. Refer to this document for more details: Account level roles.
  • To allow User Datagram Protocol (UDP) connections, the proxy must be configured.
  • If you use a Man-in-the-Middle (MITM) proxy, it must be configured to allow Transport Layer Security (TLS) connections.
  1. In TestOps, go to Admin Settings > System Configuration > TestCloud and select the Tunnel tab.

     TestCloud tunnel page
  2. In the upper right corner, select Learn how to set up a Tunnel. This will open the set up dialog with instructions.

    Set up TestCloud tunnel

    Follow the on-screen instructions:

    1. Select your OS, download the binary file, and unzip the file.
    2. Right-click on the file to open it in the terminal (for macOS), or open the file in cmd.exe (for Windows).
    3. Copy the command in the Generate configuration section, and open a Terminal or Command Prompt to run the command.
    Configure TestCloud tunnel client
    1. Copy the command in the Start a tunnel section, and open a Terminal or Command Prompt to run the command.
    Start a tunnel

    You have successfully configured the TestCloud Tunnel.

  3. To validate your Tunnel configuration, the Tunnel should be in Active status as shown below.

    Validate TestCloud tunnel active

Create and run tests with TestCloud tunnel​

  1. Navigate to Executions and select + Create > Create Automated Test Run.

    Create automated test run page
  2. Specify the information and configuration for the test run. Refer to this guide for details instruction: Create automated test run.

  3. In the Advanced Settings section, switch the Private/Local Testing toggle on.

    Advanced settings

    You can choose a specific tunnel to execute the test or use Auto-selected tunnel. With the auto-select option, TestCloud will use the most available tunnel, prioritizing private tunnels over shared tunnels. In case your tests also perform API calls, check the Also Include API Calls option.

  4. Once you're done, click Run Now to execute instantly or Schedule to create a recurring schedule for it.

Was this page helpful?