Setup and Installation: Linux
This article discusses setting up and installing Testsigma Tunnel on a Linux system, including Debian and RPM based distributions. You can either install the client manually or use it as a service for continuous operation.
Prerequisites
Before you begin, ensure that you have referred to:
Steps for Installation: Linux
- From the left navigation bar, go to Settings > Testsigma Tunnel.
- In the top right corner, click the Download Icon and download the file as per your machine architecture.
- Extract the contents of the ZIP file to a directory of your choice.
-
Navigate to the extracted folder and execute the TestsigmaConnect binary. You can provide arguments in two ways:
a. Using Command Line Arguments
- Copy API Key from Settings > API Keys
- Execute the following command:
testsigma-connect --key <your-authentication-key>
b. By Modifying ‘args.yaml’
- You can configure the authentication key and other parameters in the args.yaml file found in the same directory as the Testsigma Connect binary.
-
Here’s a sample args.yaml:
key: "<your-authentication-key>" tunnel-name: "" connections: 10 inactive-timeout: 300 verbose: false - After making these changes, you can simply type ./TestsigmaConnect to start the client.
-
Once the application is started, you will see a message like below:
🚀 Testsigma Connect is now running... 🚀 🔑 Use the following tunnel name for your automation testing: 🌍 Tunnel Name: <your-tunnel-name> 🛑 To stop the tunnel, press Ctrl+C.
Installing Tunnel as a Service on Linux
You can run Testsigma Tunnel as a service on your Linux system using either RPM or DEB installations. This allows it to run in the background and start automatically on system boot.
Steps for Debian Installation
- From the left navigation bar, go to Settings > Testsigma Tunnel.
- In the top right corner, click the Download Icon and download the DEB file as per your machine architecture.
- Install Testsigma Tunnel using the DEB package:
sudo apt install ./testsigma-connect-<version>.deb -
Create or edit the args.yaml file located at /etc/testsigma-connect/args.yaml to set your authentication key and other parameters. Here’s a sample file:
key: "<your-authentication-key>" tunnel-name: "" connections: 10 inactive-timeout: 300 verbose: false - Enable the Testsigma Connect service to start on boot:
sudo systemctl enable testsigma-connect - Start the Testsigma Connect service:
sudo systemctl start testsigma-connect
Debian Uninstallation
- Disable the Testsigma Connect service to prevent it from starting on boot:
sudo systemctl disable testsigma-connect.service - Stop the Testsigma Connect service if it is currently running:
sudo systemctl stop testsigma-connect.service - Uninstall Testsigma Connect using the APT package manager:
sudo apt remove -y testsigma-connect - If the service file /etc/systemd/system/testsigma-connect.service still exists, remove it:
sudo rm /etc/systemd/system/testsigma-connect.service - Reload the systemd daemon to apply changes:
sudo systemctl daemon-reload
Steps for RPM Installation
- From the left navigation bar, go to Settings > Testsigma Tunnel.
- In the top right corner, click the Download Icon and download the RPM file as per your machine architecture.
- Install Testsigma Tunnel using the RPM package:
sudo rpm -ivh testsigma-connect-<version>.rpm -
Create or edit the args.yaml file located at /etc/testsigma-connect/args.yaml to set your authentication key and other parameters. Here’s a sample file:
key: "<your-authentication-key>" tunnel-name: "" connections: 10 inactive-timeout: 300 verbose: false - Enable the Testsigma Connect service to start on boot:
sudo systemctl enable testsigma-connect.service - Start the Testsigma Connect service:
sudo systemctl start testsigma-connect.service
RPM Uninstallation
- Disable the Testsigma Connect service to prevent it from starting on boot:
sudo systemctl disable testsigma-connect.service - Stop the Testsigma Connect service if it is currently running:
sudo systemctl stop testsigma-connect.service - Uninstall Testsigma Connect using the RPM package manager:
sudo rpm -e testsigma-connect - If the service file /etc/systemd/system/testsigma-connect.service still exists, remove it:
sudo rm /etc/systemd/system/testsigma-connect.service - Reload the systemd daemon to apply changes:
sudo systemctl daemon-reload
