Fix man sample.

This commit is contained in:
jcamiel 2022-02-15 13:02:52 +01:00 committed by jcamiel
parent 558fea0324
commit 801543e06f
2 changed files with 8 additions and 8 deletions

View File

@ -88,14 +88,14 @@ At the minimum, the response includes the asserts on the HTTP version and status
```hurl
GET http:/google.com
HTTP/1.1 302
HTTP/1.1 301
```
It can also include asserts on the response headers
```hurl
GET http:/google.com
HTTP/1.1 302
HTTP/1.1 301
Location: http://www.google.com
```
@ -103,9 +103,9 @@ You can also include explicit asserts combining query and predicate
```hurl
GET http:/google.com
HTTP/1.1 302
HTTP/1.1 301
[Asserts]
xpath "//title" == "301 Moved"
xpath "string(//title)" == "301 Moved"
```
Thanks to asserts, Hurl can be used as a testing tool to run scenarii.

View File

@ -80,20 +80,20 @@ The HTTP response defined in the Hurl session are used to make asserts.
At the minimum, the response includes the asserts on the HTTP version and status code.
GET http:/google.com
HTTP/1.1 302
HTTP/1.1 301
It can also include asserts on the response headers
GET http:/google.com
HTTP/1.1 302
HTTP/1.1 301
Location: http://www.google.com
You can also include explicit asserts combining query and predicate
GET http:/google.com
HTTP/1.1 302
HTTP/1.1 301
[Asserts]
xpath "//title" == "301 Moved"
xpath "string(//title)" == "301 Moved"
Thanks to asserts, Hurl can be used as a testing tool to run scenarii.