Back to docs

Tool Ab Comparison

Category: Visual Testing Β· Tier: All

Compare two URLs visually (staging vs production)

When to Use

Visual testing in CBrowser uses Wasserstein optimal transport theory for robust comparison. Smart baselines compute the barycenter (optimal average) of multiple captures. Transport maps show where visual content moved. Attention analysis models persona-specific saliency.

Parameters

Parameter Type Required Description
urlA string Yes First URL (e.g., staging)
urlB string Yes Second URL (e.g., production)
labelA string No Label for first URL
labelB string No Label for second URL

Example

Compare the old checkout flow with the new design

Tips

  • Visual testing uses Wasserstein optimal transport for robust comparison
  • Smart baselines handle non-deterministic rendering automatically
  • Transport maps show WHERE content moved, not just THAT it changed

Research

Related

From the Blog