开发者

Selenium Grid 2 - API version of /console page

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜