mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
17 lines
433 B
YAML
17 lines
433 B
YAML
variables:
|
|
n_secs: 1
|
|
request:
|
|
url: /headers
|
|
headers:
|
|
Content-Type: "application/json"
|
|
device_sn: $device_sn
|
|
method: GET
|
|
setup_hooks:
|
|
- ${setup_hook_add_kwargs($request)}
|
|
- ${setup_hook_remove_kwargs($request)}
|
|
teardown_hooks:
|
|
- ${teardown_hook_sleep_N_secs($response, $n_secs)}
|
|
validate:
|
|
- eq: ["status_code", 200]
|
|
- contained_by: [content.headers.Host, "${get_httpbin_server()}"]
|