< All Topics

Imagium supports two modes of comparison Default and Strict. The modes can be specified at both test and step level.

  • Step level mode will have higher precedence over the both
  • If no mode is specified, Default mode is used for all the comparisons
  • If any mode is specified at test level using GetUID api
    • It will applied for all the steps (Unless specified in the Validate api)
    • If step mode is specified then step mode will be used for that step comparison

Whichever mode you run for comparison, you can always open the current run and check the violations for any mode

Modes

Default (AI Mode)

Default is the preset mode and is not mandatory to pass while making a rest call to Imagium. Default mode applies built in proprietary AI to remove unwanted pixel noise and prevent false positives. This mode is highly reliable and picks up even the minutest of visible changes.

Both the following will payloads will make comparison using default mode.

GetUID (TestLevel)

{
    "TestName" : "My Test",
    "ProjectKey" : "4db93dff-beef-4f68-b118-2e2358985134",
  	"Mode" : "Default"
  	
}

Validate (Step Level)

{
  "StepName": "Step 1",
  "TestRunID":  "4d8a4313-f7bd-440c-bf7a-898a7bff38b7",
  "Mode": "Default",
  "ImageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+P+/HgAFhAJ/wlseKgAAAABJRU5ErkJggg=="
}

Strict Mode

The strict mode compares at pixel level and at times there are chances of highlighting invisible pixel noise. This may give some false positives.

GetUID (TestLevel)

{
    "TestName" : "My Test",
    "ProjectKey" : "4db93dff-beef-4f68-b118-2e2358985134",
  	"Mode" : "Strict"
  	
}

Validate (Step Level)

{
  "StepName": "Step 1",
  "TestRunID":  "4d8a4313-f7bd-440c-bf7a-898a7bff38b7",
  "Mode": "Strict",
  "ImageBase64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+P+/HgAFhAJ/wlseKgAAAABJRU5ErkJggg=="
}

Previous 1. Rest API
Next 3. Compare Standalone Images and PDF’s
Table of Contents