Skip to content

How to make sure multiple matcher match which raw or path? #931

Closed Answered by ehsandeep
Nyx2022 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Nyx2020,

Matchers are marked as true when all the defined conditions in templates are true.

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '3c7cb9f46815a790686b857fdbc4295a'

      - type: status
        status:
          - 200

We had two matchers with AND conditions in the example above, which implies both criteria have to be true to return matched results.

Matchers are not tied to specific requests by default; they will return true for any request that matches the defined condition. Matchers are always defined uniquely in such a way that they will only match for a successful response; in the above case, matches are practically defined for the…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Nyx2022
Comment options

@ehsandeep
Comment options

@Nyx2022
Comment options

@ehsandeep
Comment options

Answer selected by ehsandeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #919 on August 12, 2021 08:48.