开发者

Selenium testing and emma code coverage

开发者 https://www.devze.com 2023-02-28 20:41 出处:网络
Is there a way to get the code coverage when running selenium te开发者_如何转开发sting? The problem here is selenium is invoking the UI directly instead of the real source which UI component calling.

Is there a way to get the code coverage when running selenium te开发者_如何转开发sting? The problem here is selenium is invoking the UI directly instead of the real source which UI component calling. So any solution please? I have try the eclemma plugin also but no luck.

Thanks.


Emma and Cobetura can both instrument your classes to carry out coverage reporting (I've used Cobetura to do this and not EMMA) Emma carries out static analysis plus analysis of runtime events and I prefer it nowadays.

Clover can be pointed at the JVM to tell you coverage too - they explain how to do this.

Sonar's product also allows measuring of dynamic tests - they're feature is described on their site.


are you using selenium remote control with java? http://seleniumhq.org/projects/remote-control/

I think when the code is comoiled correctly it should work, because at some point of time the underlying methods will be called.

0

精彩评论

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

关注公众号