1

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

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.

1
  • it shows 0 but i have tests in queue. Oct 24, 2018 at 8:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.