Getting Squish GUI Tester Floating License Usage

Last edited on

Synopsis

To get an overview over the license usage of Squish GUI Tester, the log messages of its floating license server can be used.

Some of these log messages contain the license usage. For example:

2025-04-14T22:14:29 [license_2] License usage: tester=1/10 executor=0/0 variable=0 total=1/10

Because of the format, the license usage information cannot be used by a tool like Microsoft Excel directly. Instead, the plain license usage numbers must be extracted, and then Microsoft Excel (or similar tools) can be used for visualizing the usage data.

The following Python script extracts this data, and writes it into a file in Excel workbook format. Once loaded in Excel, the information can be visualized, for example via a line cart. How to do this is described below.

Generating the Excel Workbook File

NOTE:

The following information and instructions are meant for advanced computer users, for example system administrators.

Prerequisites

Caveats

Step 1 - Download Script

Download the script squish_license_usage.py into a folder with write access, say C:\Users\myuser\squish_license_usage.

Step 2 - Start a shell or Command Prompt (cmd.exe)

Then change the working directory to this folder:

cd "C:\Users\myuser\squish_license_usage"

Step 3 - Obtain the license server log entries in a file

When accessing the license server's log file on Windows directly, please note the above caveats.

Step 4 - Let the script generate the Excel file

Note that the Excel file will be created in the current working directory:

"C:\Users\myuser\Squish for Qt\python3\python" squish_license_usage.py "C:\ProgramData\Squish License Server\log\squish-license-server.log"

Example output:

Lines processed: 134
Writing: squish-license-server.log.my_squish_license_5.xlsx

Step 5 - Open the Excel file in Microsoft Excel

If necessary (see near title bar of Excel), choose 'Enable Editing':

Step 6 - Select columns A to E

Step 7 - Click on menu Insert

Then click on ribbon item Insert Line or Area Chart (in section Charts):

Step 8 - Click the first 2-D Line item to insert the chart

Step 9 - Change size and position of the chart as desired