Qampanion Logo
Qampanion

Snapshot comparison

Qampanion performs screenshot comparison (when screenshots are present) before executing the actions of each step, taking into account the allowed deviation from the expected result.

The comparison mechanism is configured using:

  • Threshold
  • Excluded zones (ignored areas)

Threshold

Threshold is the allowed difference between the current screen state and the expected one, expressed as a percentage.

Value range:

  • 0% — full difference is allowed
  • 100% — even a 1-pixel difference is not allowed

The default value when creating a test case is 95%. The global threshold for whole test case can be changed in the test case settings (see Global settings).

Excluded zones

Application interfaces often contain dynamic elements (animations, timers, avatars, ad banners, etc.). For accurate comparison, you can define Excluded zones — screen areas that will be ignored during comparison. Within a single step, you can add one or more excluded zones of any size and position. You can also define global excluded zones for the test case (see Global settings). These areas are excluded from the "expected vs actual" screen comparison.

Global settings

To simplify configuration, you can set shared Threshold and Excluded zones at the test case level.

Open the test case settings:

Test case → Settings

Excluded zones are defined manually by specifying screen area coordinates. To make this easier, you can copy coordinates from a step where the excluded zone was created through the UI.

When changing the global threshold or excluded zones, two options are available:

  • apply settings to all existing and future steps
  • apply settings only to new steps

Important notes

⚠️ Global excluded zones can still be additionally modified inside individual steps.

⚠️⚠️ If you change excluded zones in global test case settings and choose “apply to all steps”, the global zones will be overwritten in every step, regardless of their current values.

⚠️⚠️⚠️ Removing an excluded zone from a step is not reversible. If you delete an excluded zone from a step and later change global settings with “apply to all steps,” the zone will not be restored in that step.