mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-14 20:08:23 +08:00
25 lines
571 B
YAML
25 lines
571 B
YAML
- config:
|
|
name: smoketest
|
|
variables:
|
|
- device_sn: ${gen_random_string(15)}
|
|
request:
|
|
"base_url": "http://127.0.0.1:5000"
|
|
"headers":
|
|
"Content-Type": "application/json"
|
|
"device_sn": "$device_sn"
|
|
|
|
- test:
|
|
name: setup and reset all.
|
|
suite: setup_and_reset($device_sn)
|
|
output:
|
|
- token
|
|
- device_sn
|
|
|
|
- test:
|
|
name: create user 1000 and check result.
|
|
suite: create_and_check(1000, $token)
|
|
|
|
- test:
|
|
name: create user 1001 and check result.
|
|
suite: create_and_check(1001, $token)
|