Selenium testing and emma code coverage
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.
精彩评论