mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 05:19:38 +08:00
save api in individual file: each file is corresponding to one api definition
This commit is contained in:
17
tests/api/create_user.yml
Normal file
17
tests/api/create_user.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
variables:
|
||||
user_name: user0
|
||||
user_password: "000000"
|
||||
uid: 9000
|
||||
token: XXX
|
||||
request:
|
||||
url: /api/users/$uid
|
||||
method: POST
|
||||
headers:
|
||||
Content-Type: "application/json"
|
||||
device_sn: $device_sn
|
||||
token: $token
|
||||
json:
|
||||
name: $user_name
|
||||
password: $user_password
|
||||
validate:
|
||||
- eq: ["status_code", 201]
|
||||
Reference in New Issue
Block a user