HttpRunner 2.0 is comming!

1, new design for testcase format;
2, refactor testcase layer mechanism.
This commit is contained in:
debugtalk
2018-11-22 19:20:30 +08:00
parent 82b527d8b2
commit 4099ade49d
31 changed files with 1500 additions and 1303 deletions

View File

@@ -2,11 +2,7 @@
name: "create user testcases."
variables:
- device_sn: 'HZfFBh6tU59EdXJ'
request:
base_url: ${get_base_url()}
headers:
Content-Type: application/json
device_sn: $device_sn
base_url: ${get_base_url()}
- test:
name: get token
@@ -41,6 +37,8 @@
url: /api/users/1000
method: POST
headers:
Content-Type: application/json
device_sn: $device_sn
token: $token
json:
name: $user_name
@@ -55,6 +53,8 @@
url: /api/users/1000
method: POST
headers:
Content-Type: application/json
device_sn: $device_sn
token: $token
json:
name: "user1"