mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 09:44:22 +03:00
spelling: javascript
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
330fbae207
commit
9b43b01735
@ -574,7 +574,7 @@ jsonpath "$.slideshow.slides[*].title" includes "Mind Blowing!"
|
||||
> one node is selected.
|
||||
|
||||
In `matches` predicates, metacharacters beginning with a backslash (like `\d`, `\s`) must be escaped.
|
||||
Alternatively, `matches` predicate support [Javascript-like Regular expression syntax] to enhance
|
||||
Alternatively, `matches` predicate support [JavaScript-like Regular expression syntax] to enhance
|
||||
the readability:
|
||||
|
||||
```hurl
|
||||
@ -849,7 +849,7 @@ of all file nodes.
|
||||
[XML]: https://en.wikipedia.org/wiki/XML
|
||||
[Base64]: https://en.wikipedia.org/wiki/Base64
|
||||
[`--file-root` option]: /docs/manual.md#file-root
|
||||
[Javascript-like Regular expression syntax]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
|
||||
[JavaScript-like Regular expression syntax]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
|
||||
[MD5]: https://en.wikipedia.org/wiki/MD5
|
||||
[SHA-256]: https://en.wikipedia.org/wiki/SHA-2
|
||||
[options]: /docs/request.md#options
|
||||
|
@ -352,7 +352,7 @@ cert_serial_number: certificate "Serial-Number"
|
||||
[XPath]: https://en.wikipedia.org/wiki/XPath
|
||||
[JSONPath]: https://goessner.net/articles/JsonPath/
|
||||
[XPath captures]: #xpath-capture
|
||||
[Javascript-like Regular expression syntax]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
|
||||
[JavaScript-like Regular expression syntax]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
|
||||
[options]: /docs/request.md#options
|
||||
[`--location` option]: /docs/manual.md#location
|
||||
[filters]: /docs/filters.md
|
||||
|
@ -75,7 +75,7 @@ GET http://myshost.com/v1/cats/{{cat_id}}
|
||||
HTTP 200
|
||||
```
|
||||
|
||||
A key point of Hurl is to work on the HTTP domain. In particular, there is no Javascript runtime, Hurl works on the
|
||||
A key point of Hurl is to work on the HTTP domain. In particular, there is no JavaScript runtime, Hurl works on the
|
||||
raw HTTP requests/responses, and not on a DOM managed by a HTML engine. For security, this can be seen as a feature:
|
||||
let's say you want to test backend validation, you want to be able to bypass the browser or javascript validations and
|
||||
directly test a backend endpoint.
|
||||
|
@ -144,7 +144,7 @@ xpath "string((//h3)[2])" contains "Featured Today"
|
||||
```
|
||||
|
||||
> XPath queries can sometimes be a little tricky to write but modern browsers can help writing these expressions.
|
||||
> Try open the Javascript console of your browser (Firefox, Safari or Chrome) and type `$x("string(//head/title)")`
|
||||
> Try open the JavaScript console of your browser (Firefox, Safari or Chrome) and type `$x("string(//head/title)")`
|
||||
> then press Return. You should see the result of your XPath query.
|
||||
|
||||
3. Run `basic.hurl` and check that every assert has been successful:
|
||||
|
Loading…
Reference in New Issue
Block a user