Skip to content

Matchers

Vivek Dhayalan edited this page Mar 29, 2022 · 1 revision

Matchers are for evaluating the response body/headers with the expected body/headers.

Different Types of Matcher:

  1. NOOP_MATCHER

  2. EXACT_MATCHER

  3. PARTIAL_MATCHER

  4. SCHEMA_MATCHER

Matcher Type When to use

NOOP_MATCHER

It does not evaluate anything and allows the Service API Test to pass.

EXACT_MATCHER

It evaluates that the expected and actual result values are exact or not.

PARTIAL_MATCHER

It evaluates if the expected results partial matches with the actual result. Will match only for Json results with Response Content-Type : application/json.

SCHEMA_MATCHER

It evaluates if the actual api response matches with the Expected Json-Schema. Will match only for Json results with Response Content-Type : application/json. The Schema_matcher only supports schemas of Json-schema.org with specification of Draft 2019-09 other lower version drafts(draft-07,draft-06, so ..) are not supported