问题
Does anybody knows whether it is possible to measure utilization of a server CPU with Selenium RC? I need to know service demand on the devise.
Thanks in advance.
回答1:
Since you are extending Selenium's capabilities with RC, you can use your programming language's native ability to measure resource utilization. For instance, in Java, try this
回答2:
Selenium is just for driving the browser. It doesn't have tools for monitoring CPU usage on the server.
However there is a company called Dynatrace that provides tools for doing this. I think they also make it pretty easy to integrate their tools with your extant Selenium scripts. Here's their website: http://www.dynatrace.com/en/
来源:https://stackoverflow.com/questions/5408245/how-to-measure-utilization-of-a-device-with-selenium