Skip to main content

Use TestOps Visual Testing

You can compare images captured during test executions with TestOps Visual Testing.

Set up a new baseline

You can set up a new baseline image to compare it with the screenshot of the next Test Run:

notes

If you run a Test Suite for the first time and the Test Suite has passed, the screenshots are automatically marked as Passed and there is no Save to baseline button. You can open a screenshot and click Failed, then switch back to Passed so that the Save to baseline button appears.

  1. Navigate to your specific project's UI > Executions. Select the test suite that has Visual Testing.
List of available test suite in Executions
  1. Click the Visual Testing tab. Then, select a checkpoint you need to configure.
Click on visual testing tab
  1. Click Mark as Passed.
  2. Then, click Save to baseline.
Save a checkpoint to baseline

Unresolved images

If you run the Test Suite again and the new screenshots from this test execution differ from the baseline images, the status of this Visual Test Run is marked as Unresolved. To resolve these images:

  1. Navigate to your specific project's UI > Executions. Select the test suite containing the Visual Testing results you need to resolve.
List of available test suite in Executions
  1. Click the Visual Testing tab, then select an Unresolved checkpoint.
Click on visual testing tab
  • If there is only a Baseline and no Checkpoint, it means the test suite did not capture a screenshot for that checkpoint.

  • If there is a Checkpoint and no Baseline, it means the test suite captured a screenshot, but there is no baseline to compare it to. You can make that Checkpoint the new Baseline.

  • If there is a mismatch, it means the screenshot captured differ from the baseline, you need to compare the images:

    • Select one of the three comparison options to compare the new screenshot (on the right) with the baseline image (on the left). The Comparison Method is enabled only if the screenshot status is Mismatch.

      • Pixel: This method compares the pixel resolution of two images to figure out the pixel-by-pixel differences between them. See: Pixel-based comparison.
      • Layout: This method identifies and maps the similar zones between the baseline and checkpoint images, highlighting the layout differences between the two images. See: Layout-based comparison.
      • Text Content: This method identifies the text content differences between two images. See: Content-based comparison.
      Compare method
  1. Click Mark as Passed or Mark as Failed to resolve the checkpoint.

Ignored zones

Specifying ignored zones is especially useful when testing a website with dynamic content, such as pop-up ads, that changes between runs. By defining ignored zones, Visual Testing will skip these areas when comparing captured screenshots to their baselines.

Add an ignored zone to a single baseline image

To configure an ignored zone, follow these steps:

  1. In your project’s UI, navigate to Assets > Visual Baseline Collections and open the desired collection.
Open Visual Baseline Collection
  1. Click on any images you want to set ignored zone for.
Open Visual Baseline Collection
  1. Click Configure Ignored Zones. The button is then highlighted in purple, which indicates the edit mode.

  2. Draw (in rectangles) to specify the area you want to ignore. The ignored zones are highlighted in purple. You can draw up to 20 ignored zones (i.e. 20 rectangles). If you want to apply an ignored zone to all baseline images, see: Apply an ignored zone to all baseline images.

  3. Click Save. You have temporarily saved the ignored zones on this baseline image.

  4. This update is currently in a draft state (e.g., Version 19 (Draft)). To permanently save the ignored zones under a new version, click Save Version at the top right corner.

Save changes

Result

The baseline image now contains the defined ignored zones. During visual comparisons, these zones will be excluded, allowing for more accurate test results by ignoring dynamic or irrelevant content.

Saved ignored zone

This configuration is now saved under a new version, for example, Version 19 (Latest Version):

Newest collection

Apply an ignored zone to all baseline images

Manually adding the same ignored zone to multiple baseline images can be time-consuming, especially in large collections. With TestOps Visual Testing, you can apply an ignored zone across all baseline images.

Note

The Apply to all feature only works if all baseline images in the collection have the same resolution (e.g., 400×500). Zones cannot be applied across images of different sizes.

To apply an ignored zone to all baseline images in a collection:

  1. In your project’s UI, navigate to Assets > Visual Baseline Collections and open the desired collection.
Open Visual Baseline Collection
  1. Click on any images you want to set ignored zone for.
Open Visual Baseline Collection
  1. Click Configure Ignored Zones. The button is then highlighted in purple, which indicates the edit mode.

  2. Draw (in rectangles) to specify the area you want to ignore. These ignored zones will appear in purple. You can create up to 20 ignored zones per image.

  3. Click on the drawn zone, then click the checkmark icon to confirm that you want to apply this zone to all baseline images in the collection.

  4. An Acknowledge popup appears. Click Acknowledge to confirm. The ignored zone now turns green, indicating that it has been applied to all baseline images in the collection.

  5. Click Save. You have temporarily saved the ignored zones on this baseline image.

  6. This update is currently in a draft state (e.g., Version 19 (Draft)). To permanently save the ignored zones under a new version, click Save Version at the top right corner.

Delete ignored zones

You can delete an ignored zone from a single baseline image or from all baseline images in the baseline collection.

  • Purple zones indicate ignored zones applied to a single baseline image.
  • Green zones indicate ignored zones applied to all baseline images in the collection.
  1. Click Configure Ignored Zones. The button will be highlighted in purple, indicating that you are in edit mode.

  2. Click on the drawn zone, then click the Delete (trash can) icon to remove it.

    • If the ignored zone is green (indicating it's applied to all images with the same resolution), a Delete All Ignored Zones confirmation dialog appears. Click Delete to confirm.
  3. Click Save to temporarily save the configuration.

  4. This change is currently in a draft state (e.g., Version 19 (Draft)). To permanently save the ignored zones under a new version, click Save Version at the top right corner.

Hide or unhide ignored zones when comparing checkpoint

When comparing the checkpoint image with the baseline image, you have the option to show or hide Ignored Zones in the comparison interface.

Was this page helpful?