Skip to content

Pixel Comparison

One of the biggest challenges in e-business is the lack of tools that allow you to track visual changes on a website. Most utilities only check server response codes or verify that specific text appears on the page. While these checks are useful as early canaries, they do not cover all potential problems.

One such problem is whether users see your website as it was intended. This is where the real power of TestCLIX comes in. TestCLIX allows you to monitor even slight changes on your website, detecting unintentional modifications during normal operation or after an update. Thanks to this, you can quickly identify when something is not working correctly - not only on the server side, but also on the client side.

At TestCLIX, we provide a utility to verify that your users see exactly what they are supposed to see.

In the Website Scenario, you can enable Full Screen Comparison on a test. During each test run, the platform compares the original session (the screenshot captured during test creation) with the current state of the website. To use this feature, you need to have a configured scheduler or run the test manually.

The utility detects changes on the website and reports them back. If a change is detected, the test is marked as Error.

However, some areas of a page might not be intended for monitoring. For example, a calendar widget, a news feed, rotating ad banners, or a live chat window may change dynamically between test runs. You might want to skip such zones and exclude them from the comparison. This is why we have introduced Ignored Zones - areas that are omitted during screen comparison, giving you full flexibility over what is monitored.

  1. Navigate to Workspace using the left sidebar menu.

  2. Click the Create button on the right side.

  3. Select Web Scenario.

  4. Scroll down to the Advanced options section.

  5. Expand the Scenario properties subsection.

  6. Enable the Full Screen Comparison toggle.

    Full Screen Comparison configuration toggle

To configure Ignored Zones, you need to start the session recorder. You can do this either by creating a new test, filling in the entire configuration and selecting Save and record, or by finding the test you want to modify and selecting Modify scenario steps on the top bar.

To add Ignored Zones, you need to have some events on the scenario timeline. You can add Ignored Zones to any event, as all events are used in Full Screen Comparison.

  1. Right-click on the event in the timeline where you want to add Ignored Zones.

  2. This will bring you into preview mode. The main window will show the state of the website at the given step.

    Preview mode showing website state
  3. On the left side, the option to add Ignored Zones should appear.

  4. Click the Ignore Zones button.

  5. Click on the canvas to add rectangles indicating the zones that should be ignored.

    Adding ignored zones on the canvas
  6. The configured zones are interactive. You can grab them and move them, or use the corners to resize them.

    Resizing an ignored zone
  7. On the left side, under Ignore Zones, you can remove zones that you no longer need.

  8. After creating zones, select Save ignored zones to close the preview and save your changes.

  9. Scenarios with configured Ignored Zones will display an additional indicator icon in the bottom right corner.

    Ignored Zones indicator icon

If the test run ends in the Error state, you can audit it in the Session Player. Full Screen Comparison generates a special type of error that indicates which elements are different between the original session and the run under question. The elements that differ are additionally marked with a highlighted square.

Pixel comparison error view showing differences between original and current session

The Error from the screen comparison is also indicated in the error message (in the history, timeline event, etc.) with the following text: Step XXX: Unable to execute step: The image check failed.