mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-27 16:26:40 +03:00
Fix man sample.
This commit is contained in:
parent
558fea0324
commit
801543e06f
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user