Analyze License Usage
The TestEngine license limits the maximum number of concurrently running test jobs. If this limit is exceeded, TestEngine puts the test jobs in a queue. This topic describes how to learn the number of queued and sent test jobs, how much time jobs spent in a queue before starting, and so on.
The following statistics are used to analyze the TestEngine usage:
Peak usage — the maximum number of running and queued test jobs for the specified time period.
Test jobs — the total number of running and queued test jobs for the specified time period.
Current test jobs — the number of running and queued test jobs at the current moment.
Wait time — the maximum and average time the test jobs were in a queue during the specified time period.
Get peak usage statistics
Peak usage statistics show how many tests were running simultaneously. TestEngine groups the statistics by hours.
Using API
Use the following operation:
GET http://<testengine-host>:8080/api/v1/testjobs/stats/peak[?from=date][&to=date]
Using Web UI
Go to the home page of TestEngine:
http://<testengine-host>:<port>/
For example, if TestEngine is installed on your local machine, and you run it on the default port, use the following link:
http://localhost:8080/
Go to Statistics:
The top graph shows the peak usage statistics for the specified period of time. To select another time period, use the controls in the top-left corner:
![]() |
Get total usage statistics
The total usage statistics show the total number of running or queued test jobs for the specified period of time.
Using API
Use the following operation:
GET http://<testengine-host>:8080/api/v1/testjobs/stats/count[?from=date][&to=date]
Using Web UI
Go to the home page of TestEngine:
http://<testengine-host>:<port>/
For example, if TestEngine is installed on your local machine and you run it on the default port, use the following link:
http://localhost:8080/
Go to Statistics:
The bottom graph shows the total number of the run and queued test jobs for the specified period of time. To select another time period, use the controls in the top-left corner:
![]() |
Get current usage
To learn how many tests are running or in a queue at the moment, do the following:
GET http://<testengine-host>:8080/api/v1/testjobs/stats/current
Get waiting time
To get information on how long test jobs were in a queue (in milliseconds), run the following command:
GET http://<testengine-host>:8080/api/v1/testjobs/stats/wait[?from=date][&to=date]