Files
httprunner/tests/testcases/smoketest.yml
2018-05-07 15:19:14 +08:00

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)