rename validators to validate

This commit is contained in:
httprunner
2017-11-01 14:37:47 +08:00
parent 62c64e9309
commit 49797c51fd
17 changed files with 53 additions and 52 deletions

View File

@@ -24,7 +24,7 @@
sign: ${get_sign($user_agent, $device_sn, $os_platform, $app_version)}
extract:
- token: content.token
validators:
validate:
- {"check": "status_code", "comparator": "eq", "expected": 200}
- {"check": "content.token", "comparator": "len_eq", "expected": 16}
@@ -38,6 +38,6 @@
json:
name: "user1"
password: "123456"
validators:
validate:
- {"check": "status_code", "comparator": "eq", "expected": 201}
- {"check": "content.success", "comparator": "eq", "expected": true}