资 源 简 介
About
Screencompare is a Selenium-based JUnit-framework to compare browser-viewports pixel-wise.
It basically opens your webpages in different browsers, makes screenshots and allows you to compare those automatically. This allows you to create automated visual layout-tests for full webpages or specific elements.
This software was created as part of my bachelor thesis about Website Testing (pdf, german) at the University of Basel.
Example
Compare the rendering of "google.ch" in Firefox and IE with a maximum allowed difference of 5%:
```
public class CompareFirefoxIETest extends ScreencompareTestCase {
public void test() throws Exception {
start("http://www.google.ch", Browser.FIREFOX);
Screen firefox = captureScreen();
stop();