You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -347,7 +347,7 @@ Assertions are a big part of api-scenario, this is the acceptance tests of your
347
347
|--- |---
348
348
|**source** | The location of the data to extract for comparison.<br>See [available source type](#available-source-type) to have authorized values.
349
349
|**comparison** | The type of operation to perform when comparing the extracted data with the target value. _([see Available comparison type](#available-comparison-type))_.
350
-
|**property** | The property of the source data to retrieve.<br><ul><li>For **HTTP headers**, this is the name of the header.</li><li>Data from a **JSON** response body can be extracted by specifying the path of the data using standard JavaScript notation.</li><li>Unused for text content, status code, response time and response size.</li>
350
+
|**property** | The property of the source data to retrieve.<br><ul><li>For **HTTP headers**, this is the name of the header.</li><li>Data from a **JSON / XML** response body can be extracted by specifying the path of the data using standard JavaScript notation.</li><li>Unused for text content, status code, response time and response size.</li>
351
351
|**value** | The expected value used to compare against the actual value.
352
352
353
353
@@ -385,6 +385,7 @@ Assertions are a big part of api-scenario, this is the acceptance tests of your
385
385
|**Response Headers** |`response_header` |Target headers of the response.
386
386
|**Body response _(JSON)_** |`response_json` |Target the response body extract in JSON.
387
387
|**Body response _(plain text)_** |`response_text` |Target the response body extract in plain text.
388
+
|**Body response _(XML)_** |`response_xml ` |Target the response body extract in XML.
388
389
389
390
#### Available comparison type
390
391
@@ -398,7 +399,7 @@ Assertions are a big part of api-scenario, this is the acceptance tests of your
398
399
|**does not contain** |`does_not_contain` |The target value is not found within the actual value.
399
400
|**has key** |`has_key` |Checks for the existence of the expected value within a dictionary's keys. The actual value must point to a dictionary **(JSON only)**.
400
401
|**has value** |`has_value` |Checks a list or dictionary for the existence of the expected value in any of the list or dictionary values. The actual value must point to a JSON list or dictionary **(JSON only)**.
401
-
|**is null** |`is_null` |Checks that a value for a given JSON key is null.
402
+
|**is null** |`is_null` |Checks that a value for a given JSON or XML key is null.
402
403
|**is a number** |`is_a_number` |Validates the actual value is (or can be cast to) a valid numeric value.
403
404
|**less than** |`is_less_than` |Validates the actual value is (or can be cast to) a number less than the target value.
404
405
|**less than or equal** |`is_less_than_or_equals`|Validates the actual value is (or can be cast to) a number less than or equal to the target value.
0 commit comments