mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-23 19:12:06 +03:00
bf79a512e0
hurlfmt now also outputs a trailing newline.
36 lines
760 B
Plaintext
36 lines
760 B
Plaintext
# Variables can be set from:
|
|
# - an external properties file
|
|
# - at the command-line with the --variable option
|
|
# - with HURL_xxx environment variable
|
|
# - in the Hurl File in the [Options] section
|
|
|
|
POST http://localhost:8000/variables
|
|
Name: {{name}}
|
|
Age: {{age}}
|
|
Height: {{height}}
|
|
Female: {{female}}
|
|
Id: {{my-id}}
|
|
A_Null: {{a_null}}
|
|
Country: {{country}}
|
|
[Options]
|
|
variable: country=Italy
|
|
{
|
|
"name": "{{name}}",
|
|
"age": {{age}},
|
|
"height": {{height}},
|
|
"female": {{female}},
|
|
"id": "{{my-id}}",
|
|
"a_null": {{a_null}},
|
|
"country": "{{country}}"
|
|
}
|
|
|
|
HTTP/* 200
|
|
[Asserts]
|
|
variable "name" == "Jennifer"
|
|
variable "female" == true
|
|
variable "age" == 30
|
|
variable "height" == 1.70
|
|
variable "a_null" == null
|
|
variable "my-id" == "123"
|
|
variable "country" == "Italy"
|