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.

Bharat Mane
6,78512 gold badges42 silver badges69 bronze badges
asked Jul 24, 2017 at 10:22

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.

answered Aug 19, 2017 at 13:04
1
  • it shows 0 but i have tests in queue. Commented Oct 24, 2018 at 8:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.