QMetry and Reports Offline Installation on Linux - 2 Tier

This guide describes how to install QMetry Test Management application and QMetry Reports in a 2-tier Linux environment without an internet connection.

This document contains detailed steps regarding how to download QMetry application’s docker image and Report application’s docker image from the docker repository and how to move them to another machine for installation.

QMetry runs in Docker containers on Apache Tomcat 11.0.5, MySQL 8.4.8, and OpenJDK 17.0.2.

2-Tier Installation

The two-tier deployment uses two Linux servers. The following table lists the role of each server.

2 Tiers

Installations

Server 1

QMetry Application and QMetry Database

Server 2

QMetry Reports and and QMetry Report Database

Pre-requisites

Confirm every item in the Pre-requisites for QMetry Application and Report Server Installation document. After that confirm the following:

Prerequisite

What to confirm

Required commands

unzip, curl, and yum and Docker commands are supported.

Operating System

Linux - Ubuntu 24.04,

Docker Version

20.10.13

Docker Compose Version

v2.40.0

Installation files

You have the QMetry_Linux_Installer.zip files and Docker credentials from QMetry Support.

Root access

Docker installation requires root user access. To install using a non-root user, refer to Installing QMetry as a Standard User before starting the install on both QMetry and Report servers.

Protocol

QMetry application and QMetry Report both should be configured either on https or http.

If you are integrating Jira with QMetry, make sure QMetry and Jira should run on the same protocol.

Storage

By default, docker manages storage under “/var/lib/” directory on the host machine.

Ensure the required disk space is available as per the usage requirement of the QMetry application and Reports.

In addition to this, ensure the following

  1. Configure docker service on QMetry Application and Report servers to start automatically on reboot of servers.

  2. The following Ports should be open:

    Installation

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

    QMetry Application

    80/443 & 3306

    QMetry Reports

    80/443, 8080 & 3306

  3. Application and Report servers should be in the same network. 

    Report Server should be able to communicate with Application Server over 80/443 and Database Server 3306/DB Port.

    Ports 8080 and 3306 should be enabled/open on Reports Server to allow connections from the QMetry application server.

Download Docker Images of QMetry

Follow these steps on the Internet-enabled machine to download QMetry and Report Docker images.

  1. Docker Login

    Contact QMetry Support if you do not have docker credentials.

    docker login
  2. Pull QMetry Application Docker Image

    docker pull qmetry/qmetry:latest
    QSvrDownload.png
  3. Verify the docker image has been downloaded successfully.

    docker images
    QSvr_DockerImage.png
  4. Save Application Docker Image

    Save QMetry application’s docker image as .tar file. You can change the path of .tar file in the following command.

    docker save -o /opt/qtm/qmetryapp.tar qmetry/qmetry:latest
  5. Download and Save QMetry Report CDC and Sync Docker Images

    Download the QMetry Report CDC Docker image.

    docker pull qmetry/qmetry:cdc

    Save the CDC image.

    docker save -o /opt/qtm/qmetrycdc.tar qmetry/qmetry:cdc

    Download the QMetry Report SymDocker image.

    docker pull qmetry/qmetry:sync

    Save the Sync image.

    docker save -o /opt/qtm/qmetrysync.tar qmetry/qmetry:sync

    Verify the docker images

    docker images
  6. Download and save QMetry Database docker image.

    docker pull qmetry/qmetry:appdb848
    docker save -o /opt/qtm/qmetrydb.tar qmetry/qmetry:appdb848
    docker images
  7. Download and save Report Database docker image

    docker pull qmetry/qmetry:reportdb848
    docker save -o /opt/qtm/qmetryreportdb.tar 
    qmetry/qmetry:reportdb848
    docker images
  8. Transfer the qmetryapp.tar and qmetrydb.tar files

    Transfer the qmetryapp.tar and qmetrydb.tar files to the QMetry application server and qmetrycdc.tar, qmetrysync.tar and qmetryreportdb.tar files to the Report server.

  9. Load the images on the application server

    Go to the directory containing the .tar file and run the following command.

    # Load the transferred image tar files
    sudo docker load -i /opt/qtm/qmetryapp.tar
    sudo docker load -i /opt/qtm/qmetrydb.tar
    
    # Verify the images were restored correctly
    sudo docker images

Install QMetry Application

To install QMetry Application, perform the following steps:

  1. Extract the installation files

    Copy the QMetryApp.zip file that you received from QMetry Support to the server. Go to the directory that contains the file, and run the following command.

    unzip QMetry_Linux_Installer.zip
  2. Run the installer

    cd QMetry_Linux_Installer 
    sudo su
    chmod +x install.sh
    ./install.sh
  3. Online Install Prompt

    Options

    Allowed Values

    Default Value

    Recommended Value

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

    Y, y, N, n

    Y

    N

  4. Docker Verification

    Enter the docker credentials shared as a part of the installation package.

  5. Main Installation Menu

    Enter 2 to install the QMetry application.

    image-20260331-061107.png
  6. Specify the application data directory

    Enter a directory path on the host machine to store QMetry data such as attachments, licenses, imports, and exports. You can specify any valid path, and the installer creates the directory automatically if it does not exist.

    Options

    Example

    Please enter QMetry application directory

    /opt/qmetryapp

  7. Enter the configuration parameters

    Options

    Details

    Default Value

    Example

    Enter QMetry database schema

    QMetryApplication Database schema name.

    qmetry

    qmetry

    Enter QMetry database password for root user

    Enter QMetryApplication Database Password for the root user.

    -

    QMetry@123

    Enter Email for QMetryadmin user

    Enter QMetryuser email address for Admin.

    -

    admin@qmetry.com

    Enter password for QMetryadmin user

    Enter QMetryuser password for Admin.

    -

    Admin@123

    Enter Min. Heap Memory for the web server in GB

    Enter Heap Memory in GB

    2

    2

    Enter Max. Heap Memory for the web server in GB

    Enter Heap Memory in GB

    4

    4

    Enter QMetryDatabase Connection Pool Size

    Enter Pool Size in number format

    100

    100

  8. Installation may take a while. When it finishes QMetry displays the message "QMetry Application Installation is complete".

    Type 0 to exit the installer.

    Run the following command to confirm that the containers are running. Docker lists the installed containers with their container IDs and names.

    docker ps
  9. Get QMetry License and Install it

    Choose the option that matches your license type.

    • For evaluating users

      • Use the evaluation license, valid for 30 days, that you received with the installation.

    • For commercial users

      Once you receive license.key from QMetry Support, you can follow the Steps to Apply License file .

  10. Access the Application

    Open the QMetry application in a browser at the following address, where you substitute your own value. http://<your IP address OR domain name>

    Log in with the Default QMetry credentials.

    • Username: admin

    • Password: <user specified password in step 7>

    The MySQL database is installed on port 3306 with the following details.

    • Username: root

    • Password: <user specified password in step 7>

    • Schema: <user specified Schema in step 7>

  11. Update the administrator profile

    After you complete the previous steps, log in to the QMetry application and update the administrator profile.

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

    • Update the administrator email address in the Email field.

    • In the Base URL field, enter your QMetry URL.

    • Select Update.

    QSvrlog into QMetry application.png
  12. Configure additional Tomcat settings

    QMetry installs with a default configuration for minimum and maximum heap memory. You can adjust these settings to match your hardware configuration. For more information, refer to Additional Configuration for more details.

Note

Recommended: Back up the application data directory on a regular schedule. Periodic backups help prevent data loss if a disaster occurs.

Install QMetry Reports

Note

Reports installation require Redis Server and ActiveMQ Server. Refer to the Redis and Automation installation sections for setup steps.

Pre-requisites

Before you install QMetry reports, verify the following requirements.

  • QMetry App is installed and running.

  • QMetry App DNS/IP is configured in profile section.

  • Active MQ and Redis containers are running and configured in QMetry App.

  • The services are reachable from the report server: Redis (6379), ActiveMQ (61616, 8161), App (80, 443), App DB (3306).

Download Docker Images of Reports

  1. Run the following command. When prompted, enter the Docker credentials. Contact QMetry Support to get your Docker credentials.

    docker login
  2. Download and save the report’s docker image.

    docker pull qmetry/qmetry:cdc
    docker pull qmetry/qmetry:sync
    docker pull qmetry/qmetry:reportdb848
    docker save -o /opt/qtm/qmetrycdc.tar qmetry/qmetry:cdc
    docker save -o /opt/qtm/qmetrysync.tar qmetry/qmetry:sync
    docker save -o /opt/qtm/qmetryreportdb.tar qmetry/qmetry:reportdb848
    docker images
  3. Transfer the qmetrycdc.tar, qmetrysync.tar, and qmetryreportdb.tar files to the Report server.

  4. Go to the directory containing the .tar file and run the following command.

    sudo docker load -i qmetrycdc.tar
    sudo docker load -i qmetrysync.tar
    sudo docker load -i qmetryreportdb.tar
  5. Check whether the docker images have been restored correctly or not.

    sudo docker images

Steps to Follow for QMetry Report Installation

To install QMetry Reports on the second server, perform the following steps:

  1. Get the installation zip file

    Connect to the report server. Upload the QMetry_Linux_Installer.zip to the /opt directory of the Report server and extract it with the following commands.

    sudo su -
    cd /opt
    unzip QMetry_Linux_Installer.zip
    cd QMetry_Linux_Installer/
  2. Run the reports installer

    chmod +x install.sh
    ./install.sh
  3. Online Install Prompt

    Options

    Allowed Values

    Default Value

    Recommended Value

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

    Y, y, N, n

    Y

    N

  4. Verify Docker

    Enter the Docker credentials that were shared as part of the installation package.

  5. Main Installation Menu

    Type 3 to install QMetry Reports.

    image-20260331-061107.png
  6. Enter the report configuration parameters

    After the installation starts, enter the following parameters when prompted.

    Options

    Details

    Example

    Enter App Database Host URL

    Enter Database Host Public IP/DNS of QMetry application.

    10.0.8.166

    Enter App Database Port

    Enter Database Port of QMetry application.

    3306

    Enter App Database Username

    Enter Database username of QMetry application.

    root

    Enter App Database Password

    Enter Database password of QMetry application.

    root

    Enter App Database Schema Name

    Enter Database schema name of QMetry application.

    qmetry

    Enter Report Database Host URL

    Enter Database Host Public IP/DNS of QMetry Report.

    10.0.8.221

    Enter Report Database Port

    Enter Database Port of QMetry Report Database.

    3306

    Enter Report Database Username

    Enter Database username of QMetry Reports Database.

    root

    Enter Report Database Password

    Enter Database password of QMetry Reports Database.

    root

    Enter Report Database Schema

    Enter Database schema name of QMetry Reports Database.

    qtmanalytics

    Enter MQ URL

    Enter MQ Active URL

    tcp://10.0.8.166:61616

    Enter MQ UserName

    Enter MQ Username

    admin

    Enter MQ Password

    Enter MQ Password

    admin

    Enter maximum memory to allocate for CDC app in GB

    Maximum memory allocation for the CDC container:

    • Entered memory would be used by the sync job while running full sync of data.

    • Enter 25% of total memory available on the server. For example, if the memory on the server is 24 GB, enter 6.

      • A minimum of 4 GB memory must be allocated.

    • To check the total memory, run the command: free -h

    4

    Enter maximum memory to allocate for Sync app in GB

    Maximum memory allocation for the Sync container:

    • Entered memory would be used by the sync job while running full sync of data.

    • Enter 70% of total memory available on the server. For example, if the memory on the server is 24 GB, enter 17.

      • A minimum of 8 GB of memory must be allocated.

    • To check the total memory, run the command: free -h

    4

    Enter number of CPU’s to allocate for CDC app

    Number of CPUs to allocate for the CDC container. (The default is 4)

    4

    Enter number of CPU’s to allocate for Sync app

    Number of CPUs to allocate for the Sync container:

    • Allocate 70% of the available CPUs. For example, if CPU has 8 cores, enter 6.

    • A minimum of 4 CPU cores must be allocated.

    • To check total CPUs, run the command : lscpu

    4

  7. After QMetry creates the containers, the system runs a full sync. When the script finishes, QMetry displays the message "QMetry Report installation is complete".

    Type 0 to exit the installer.

    image-20260416-064212.png
  8. Update the Base URL

    Log into QMetry and go to your Profile section, edit the Base URL with QMetry app URL. When the full sync is complete, exit the installation by entering 0.

    image-20260416-073621.png
  9. Configure the database connection

    Configure the report database connection under Insight Configuration in the QMetry application. To configure the connection, perform the following steps:

    • Login to QMetry with administrator credentials and go to Customizations.

    • Select Insight Configuration and open Database Configuration tab.

    • Under Database Configuration tab, enter the following details:

      • Host: Enter Report Database Host URL from the report configuration table.

      • Port: 3306

      • Username: <Enter Report database username>

      • Password : <Enter Report database password>

      • Database Name: <Report DB schema specified during installation>

    • Select Test to confirm a successful connection, and then select Test & Save.

      image-20260416-074350.png
  10. Set up the report data sync

    On the Sync Data tab, set up the Report Data Sync from your reports server to QMetry Reporting.

    • Report Server URL: Enter your report server domain URL followed by port 8080. Confirm that port 8080 is open on the report server.

    • Select Test to confirm a successful connection and then select Test & Save.

You can use QMetry Reports when the sync is completed. QMetry remains available during this time.

image2020-7-1_12-31-2.png

Note

Run Sync Data the first time after you install QMetry reports installation. The time that the sync takes depends on the amount of data in QMetry. You can monitor sync progress and status in the interface. QMetry custom reports are not accessible while the sync runs. Run the sync only during off-peak hours.

Install the Redis Caching Server

Redis caching improves overall performance and scalability. To install the Redis Server, refer to Installing Redis Caching Server.

Install Automation API Features

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. If you plan to use Automation APIs to import test results into QMetry, refer to Install Automation API Feature for Offline Installations.

Get support

If you are facing any issues during the installation process, kindly generate a support ticket on Support Portal for assistance.

Publication date: