Install HyperTest
Deploy HyperTest on Linux VM
In this guide, we will install HyperTest in a new x64 ubuntu VM.
The VM should be x64 architecture and preferably latest Ubuntu version - 22.04.
If you are using AWS EC2, you can reduce cost by installing HyperTest on a spot instance and attaching an elastic IP to it.
If you want to install HyperTest on Kubernetes cluster, refer this guide...
Tech Stack Overview
Docker: Docker is an open platform for developing, shipping, and running applications
Docker Compose v1: Compose is a tool for defining and running multi-container Docker applications
HyperTest: A No-code API testing tool
Recommended Resources
2vCPU | 4GB RAM | 50GB Disk |
Recommended minimum resources required to run HyperTest on a VM are as follows:
Prerequisites
You should have root user access in VM
Your system should have the following installed:
Docker: (>= 20.10.6)
Docker-compose: (>= 1.29.1)
1. Installing Docker
Check if you have docker installed in your VM already by using the following command
If you don’t have docker, install it using the following command
If you have an older version of docker (< 18.09.7), remove it and reinstall the latest version using above command
Check if docker is installed successfully by using the following command
2. Installing Docker Compose v1
Check if you have docker-compose installed in your VM already by using the following command
If you don’t have docker-compose, install using the following command
Replace 1.29.1 with the latest v1 version. v2 is not supported as of now.
If you have an older version (< 1.29.1), remove it and reinstall the latest version using above command
Check if docker-compose is installed successfully by using the following command
Getting Started
1. Download HyperTest
Create a new directory
Replace the <name of your service> with the service name you choosing to test with HyperTest in all below commands
Download HyperTest
2. Start HyperTest
Set up a cron job to start HyperTest on reboot
Run
sudo crontab -e
Edit the path to HyperTest binary and add the following entry to a new line.
* * * * * cd /opt/hypertest_<name of your service> && ./hypertest bg-start >> /tmp/ht-<
name of your service>.log 2>&1
Start HyperTest
After starting HyperTest, you will have to enter two ports for HyperTest. These ports should be opened in your VM. Here we have given 8000 and 8001, but you can always give other ports.
LOGGER_PORT: 8000 - This port will be used internally for mirroring traffic. You have to allow incoming traffic to HyperTest on this port from your application
HT_PORT: 8001 - This is the port on which HyperTest Dashboard will be accessible by the users
Wait for complete installation of HyperTest
Open dashboard
HyperTest dashboard would be running on the port specified by you just now.
Open up your browser and go to http://<your-ip/your-hostname>:<HT_PORT
>
Mirror Traffic to HyperTest
After installing HyperTest, please follow below guide to mirror traffic to HyperTest
Mirror TrafficConfigure HyperTest
After installing HyperTest, please follow below guide to configure HyperTest
Configure HyperTestLast updated