I am trying to figure a way to find the number of requests in a queue using selenium grid.
For example, If I have a grid with 8 chrome browser instances and I am trying to run 20 test cases in parallel in chrome, 12 requests go in selenium grid queue. This I can view on the grid console, however, I was wondering if there is any API/method that I can call to check a number of pending request in a queue on the grid.
1 Answer 1
You can do curl -X GET http://selenium_hub_host:4444/grid/api/hub/ -d '{"configuration":["newSessionRequestCount"]}'
to get the pending requests. Based on this you can use httpclient
API in java
as well.
-
it shows 0 but i have tests in queue.mrtechmaker– mrtechmaker2018年10月24日 08:04:43 +00:00Commented Oct 24, 2018 at 8:04
Explore related questions
See similar questions with these tags.