setMatchLevel method

Class: ConfigurationPlatform: ImagesLanguage: JavaScript SDK:

Use this method to set the default match level to be used for subsequent checkpoints in the test.

Syntax


let configval = config.setMatchLevel(value);

Parameters

value
Type:<a class ='link' href='/Content/api/eyes-sdk/enums-gen/enum-global-matchlevel-images-javascript.htm'>MatchLevel</a>
Available match level values are:
  • None
  • Strict
  • Layout
  • Content
  • Exact
For a description of these match levels and the different ways to apply them to tests, checkpoints, and regions, see Eyes match levels.

Return value

Type: <a class ='link' href='/Content/api/eyes-sdk/index-gen/class-configuration-images-javascript.htm'>Configuration</a>
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of this class.

Remarks

For a full description of the affect of each match levels and the different ways to apply them to tests, checkpoints and regions, How to use Eyes match levels.