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

32
tests/testcases/setup.yml Normal file
View File

@@ -0,0 +1,32 @@
- config:
name: "setup and reset all."
id: setup_and_reset
variables:
- user_agent: 'iOS/10.3'
- device_sn: "TESTCASE_SETUP_XXX"
- os_platform: 'ios'
- app_version: '2.8.6'
base_url: "http://127.0.0.1:5000"
verify: False
output:
- token
- test:
name: get token (setup)
api: get_token
variables:
- user_agent: 'iOS/10.3'
- device_sn: $device_sn
- os_platform: 'ios'
- app_version: '2.8.6'
extract:
- token: content.token
validate:
- eq: ["status_code", 200]
- len_eq: ["content.token", 16]
- test:
name: reset all users
api: reset_all
variables:
- token: $token