The purpose of the script ("test.py") offered in this article, is to check the upper limit of simultaneous Squish execution licenses that it can acquire.
How it Works¶
This script simultaneously launches n instances of squishrunner, and checks (for up to 40 seconds) how many of these squishrunners can acquire a license.
This script will only report the number of licenses "its" squishrunners manage to acquire.
Other instances of Squish IDE, squishrunner, and processes that use the squishtest module, also acquire and hold licenses while they are executing, so the total number of licenses in use, while this script is executing, must ultimately be obtained from the Squish GUI Tester floating license server log. (This is explained at License Server Logging in the Squish manual.)
Step 1 - Download this
Step 2 - In a shell, terminal or command prompt execute the following:
This will check if a maximum of 10 simultaneous execution licenses can be acquired by the squishrunners launched by this script:
squish_dir" and "
Example Execution and Output¶
Command (in cmd.exe or so):
In this example, only a maximum of 10 simultaneous execution licenses could be obtained.
In this case, this is because the license set in use only has a total number of 10 (execution and tester combined) licenses. This is reflected in the license server log, too:
Another reason for a number lower than expected, can be that other clients are also currently using licenses from this license server/set. To check this, one needs to check the license server's log, which is explained at License Server Logging in the Squish manual.