Adding strict matcher

patch-1
sandeep 2021-05-05 17:39:31 +05:30
parent a14c1ce233
commit b10918510c
2 changed files with 5 additions and 3 deletions

View File

@ -21,5 +21,6 @@ requests:
- type: word
words:
- '{{randstr}}'
- 'suggestions'
- '"results":'
- '"suggestions":'
condition: and

View File

@ -21,7 +21,7 @@ requests:
Content-Disposition: form-data; name="file1"; filename="poc.aspx"
Content-Type: image/jpeg
Poc_Test
{{randstr}}
-----------------------------20873900192357278038549710136--
- |
@ -38,7 +38,8 @@ requests:
regex:
- "(.*?.ASPX)"
req-condition: true
matchers:
- type: dsl
dsl:
- "contains(body, 'Poc_Test') && status_code == 200"
- "contains(body_2, '{{randstr}}') && status_code_2 == 200"