Testing: Selenium: ZimbraSelenium CodeCoverage

Revision as of 18:01, 26 May 2011 by Matthew Rhoades (talk | contribs) (Created page with '==General Information== The '''Zimbra Selenium Harness''' contains code to measure [http://en.wikipedia.org/wiki/Code_coverage code coverage] using [http://siliconforks.com/jsco…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

General Information

The Zimbra Selenium Harness contains code to measure code coverage using JSCoverage.

Code coverage statistics are gathered for the javascript clients, the ajax client and the admin console.

Design

The harness uses jscoverage-server mode, where jscoverage.html is not required. Therefore, the code coverage does not require the zimbra application to run inside a containing window. See JSCoverage documentation for more details.

JSCoverage

JSCoverage install

Code Coverage depends on having jscoverage installed on the server in /usr/local/bin/jscoverage, which corresponds to the coverage.tool property in ZimbraSelenium/conf/config.properties.

Don't use the apt-get install jscoverage, that doesn't seem to work correctly. Instead, get the source zip and compile. Then, copy/link /usr/local/bin/jscoverage to the built files.

JSCoverage instrumentation

To manually instrument the server, the command is (as root):

/usr/local/bin/jscoverage --no-instrument=help/ /opt/zimbra/jetty/webapps/zimbra /opt/zimbra/jetty/webapps/instrumented

Design

Configuration

Logging

Coverage reporting

After executing the harness, the output will be written to ZimbraSelenium/test-output/.../coverage/jscoverage.html



Verified Against: unknown Date Created: 11/7/2007
Article ID: https://wiki.zimbra.com/index.php?title=Testing:_Selenium:_ZimbraSelenium_CodeCoverage Date Modified: 2011-05-26



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search