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

@@ -6,20 +6,18 @@
- ["test1","111111"]
- ["test2","222222"]
variables:
- username: test1
- user_agent: "iOS/10.1"
- device_sn: ${gen_random_string(15)}
- os_platform: 'ios'
- app_version: 2.8.5
request:
base_url: ${get_base_url()}
headers:
Content-Type: application/json
device_sn: $device_sn
base_url: ${get_base_url()}
output:
- token
- test:
name: get token with $user_agent and $username
api: get_token($user_agent, $device_sn, $os_platform, $app_version)
api: get_token
extract:
- token: content.token
validate: