Skip to content

Commit f96b772

Browse files
[DOCS-12968] add a note to HTTP test assertions (#33561)
* add copy to http tests * fix spelling
1 parent f5cd8e7 commit f96b772

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/en/synthetics/api_tests/http_tests.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ Define variables for your HTTP API tests with JavaScript:
147147
148148
Assertions define what an expected test result is. After you click **Test URL**, basic assertions on `response time`, `status code`, and `header` `content-type` are added based on the response that was obtained. You must define at least one assertion for your test to monitor.
149149
150+
<div class="alert alert-info">The assertions header, body, and JavaScript sections are only for defining assertions. They cannot be used to make additional HTTP requests.</div>
151+
150152
| Type | Operator | Value type |
151153
|---------------|--------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|
152154
| body | `contains`, `does not contain`, `is`, `is not`, <br> `matches`, `does not match`, <br> [`jsonpath`][4], [`xpath`][5] | _String_ <br> _[Regex][6]_ |

0 commit comments

Comments
 (0)