How to get selenium grid usage statistics

I use a selenium grid with 13 nodes, each of which is limited to one instance of chromium. My project uses most of these nodes at different times.

In the future I will need to add more nodes - due to more tests, parallel exec., Different browsers, etc. The problem is that I can’t say exactly what the use of grid nodes is.

There is a way to get the following statistics from the grid:

  • idle / busy time nodes in% - determine if node was busy most of the time or inactive most of the time
  • number of tests performed since node started
  • runtime - duration since the start of node

thanks tizki

+7
selenium selenium-webdriver selenium-grid remotewebdriver
source share
1 answer

You can create a servlet on a hub so that you can check the statistics directly from the browser by simply downloading the URL. Check out the RegistryBasedServlet class.

Then on the node running the script, you run this node directly from the java pool class, which contains a loop that collects all the information that you pointed to this node.

You can also use this loop to update the node configuration and re-register on the hub.

Then from the servlet you can process the entire node and collect all the information. From the registry of the hub and / or servlet.

+1
source share

All Articles