开发者

Selenium Grid 2 - API version of /console page

开发者 https://www.devze.com 2023-03-25 21:49 出处:网络
I am writing a status monitoring page for our test environment and would like a list of individual selenium/webdriver nodes which are registered with the Grid server.I can do this by scraping the info

I am writing a status monitoring page for our test environment and would like a list of individual selenium/webdriver nodes which are registered with the Grid server. I can do this by scraping the information on /console but I was wondering if there is an api-like way.

Basically I'm looking to do obtain output similar to that of 开发者_StackOverflow社区TestSessionStatusServlet but for all registered nodes.

Mark


I don't think there's currently anything shipping in Grid that provides that. However, you can register your own servlet when you start the hub up. If you subclass org.openqa.grid.web.servlet.RegistryBasedServlet you'll have full access to the Registry and can pull out any info that you need. I've done something very similar so I could audit when a node goes down.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号