Install and Upgrade Automation API Feature for Online Installations

In this guide, we'll run you through the installation steps of Automation API. Installing the Automation API with your on-premise QMetry installations will enable several automation API related features including faster automation result file imports into QMetry.

Before you Start

Choose a Deployment Option

  • Option 1: Shared server: install the Automation API on the same server that runs the QMetry Application.

  •  Option 2 (recommended): Dedicated server: for heavy Automation API usage, install ActiveMQ, the Automation API, and Redis caching on a separate server.

If you are opting for Option 2, the following are hardware requirements for Active MQ and Automation API Server.

Hardware Requirements

Automation API Server Hardware Requirements

Small Teams

< 50 Users

Medium Teams

< 500 Users

Large Teams

500+ Users

Min

Recommended

Min

Recommended

Min

Recommended

Memory

4 Gb

8 Gb

8 Gb

16 Gb

16 Gb

32 Gb

CPUs

2 Core

4 Core

4 Core

12 Core

12 Core

24 Core

Pre-requisites for the Installation

  1. QMetry Application is installed and running. Complete steps 1-7 of the QMetry and Reports Installation on Linux - 2 Tier (through entering the Base URL); Step 7 is mandatory.

  2. Redis and ActiveMQ are configured with the QMetry Application. This guide installs both if you have not already.

  3. Every server supports the commands: unzip, curl, and vim.

  4. Internet access is enabled on every server for docker-based installation.

  5. No Proxy blocks internet downloads.

  6. Docker installation requires root user access.

  7. Get the QMetry_Linux_Installer.zip file and Docker credentials from QMetry Support.

Required Ports

Required Ports

Installation

Ports that need to be enabled and should be available for use

Redis Caching Server

6379

Active MQ Server

8181 & 61616

Automation API Server

8081

Note

Run the three steps in order: Redis, then ActiveMQ, then the Automation API, so each dependency is available before the service that needs it.

During an upgrade, the installer detects the existing component and skips the configuration prompts, reusing stored values.

Install/Upgrade Redis Caching Server

Note

QMetry supports Redis 7.0.10 and later. The Docker image currently installs Redis 7.4.1.

  1. Copy QMetry_Linux_Installer.zip to the server, then extract it and enter the directory:

    unzip QMetry_Linux_Installer.zip
    cd QMetry_Linux_Installer
  2. Run the installer

    sudo su
    chmod +x install.sh
    ./install.sh
  3. Enter Y on the following prompt

    Options

    Allowed Values

    Default Value

    Recommended Value

    Do you want to make an online installation (Y/N)?

    Y, y, N, n

    Y

    Y

  4. The script runs docker.sh to verify Docker installation and prerequisites are met. Enter the docker credentials.

  5. At the QMetry Installation Menu enter 4.

    image-20260331-061107.png
  6. The installation may take a while. Once the installation is complete, execute the following command.

    docker ps

    Confirm the Redis container appears in the list.

  7. Configure Redis in QMetry

    Log in to the QMetry application:

    LogintoQMetry.png
    • Go to "Admin" Profile and Edit the Profile.

    • Update QMetry Redis URL (host/dns:port).

For more on Redis, see https://redis.io/.

Note

Configure the Redis with QMetry Application as mentioned in 7. If you are facing any issues from the QMetry Application side after 7, then you may be required to restart the QMetry Application docker container after Step 7.

Install/Upgrade Active MQ

  1. Copy the QMetry_Linux_Installer.zip to the server, then extract it and enter the directory.

    unzip QMetry_Linux_Installer.zip
    cd QMetry_Linux_Installer
  2. Run the installer

    sudo su
    chmod +x install.sh
    ./install.sh
  3. Enter your response to the following prompt:

    Options

    Allowed Values

    Default Value

    Recommended Value

    Do you want to make an online installation (Y/N)?

    Y, y, N, n

    Y

    Y

  4. The script runs docker.sh to verify Docker installation and prerequisites are met. Enter container repository credentials shared as a part of the installation package.

  5. At the main installation menu, type 5 to install Automation API.

    image-20260331-061107.png
  6. Enter the ActiveMQ credentials (skipped during an upgrade):

    Parameters

    Example

    ActiveMQ username

    admin

    ActiveMQ password

    admin

  7. Verify the container

    docker ps
  8. Configure ActiveMQ in QMetry

    Login to QMetry and perform the following steps:

    • Go to "Admin" Profile and Edit the Profile.

    • Update MQ URL, MQ Username, and MQ Password.

    The ActiveMQ URL should be in the format of protocol://<host>:port.

    For example, "tcp://<activeMQ-Host>:61616"

    QSvr_MQUrl.png
  9. Restart the QMetry Application docker container.

Install Automation API Server

  1. Copy QMetry_Linux_Installer.zip to the server and extract it:

    unzip QMetry_Linux_Installer.zip
  2. Run the installer

    sudo su
    chmod +x install.sh
    ./install.sh

    Note

    For upgrade, use upgrade.sh

  3. Enter Y in the following prompt

    Options

    Allowed Values

    Default Value

    Recommended Value

    Do you want to make an online installation (Y/N)?

    Y, y, N, n

    Y

    Y

  4. The script runs docker.sh to verify Docker installation and prerequisites are met. Enter container repository credentials shared as a part of the installation package.

  5. At the main installation menu, type 7 to install QMetry Automation API.

    image-20260331-061107.png
  6. Configure the below parameters

    Options

    Details

    Default Value

    Example

    Enter QMetry (QTM) database host (localhost)

    For AWS, use the private IP of the instance hosting the QTM database.

    localhost

    QTM Application's database host

    Enter QMetry (QTM) database port (3306)

    3306

    3306

    3306

    Enter QMetry (QTM) database schema (qmetry)

    qmetry

    qmetry

    qmetry

    Enter QMetry (QTM) database user (root)

    root

    root

    root

    Enter QMetry (QTM) database password

    -

    qmetry

    qmetry

    Enter QMetry (QTM) database min connection (32)

    32

    32

    32

    Enter QMetry (QTM) database max connection (50)

    50

    50

    50

    Enter min threads (2)

    2

    2

    2

    Enter max threads (2)

    2

    2

    2

    Enter Redis host (localhost)

    In case of AWS installation enter the private IP of the AWS instance where lis installed.

    localhost

    redis host

    Enter Redis port (6379)

    6379

    6379

    6379

    Enter MQ URL (tcp://localhost:61616):

    In case of AWS installation enter the private IP of the AWS instance where ActiveMQ is installed. EG: tcp://10.0.0.16:61616

    tcp://localhost:61616

    tcp://<activeMQ-Host>:61616

    Enter MQ user (admin)

    admin

    admin

    admin

    Enter MQ password

    Match your ActiveMQ password

    -

    -

  7. Verify the docker

    docker ps

    Confirm the automation container appears in the list. Installation is complete once it is running.

  8. Type 0 to exit the installer.

Get support

For any installation issue, raise a ticket on the Support Portal

Publication date: