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

@@ -100,7 +100,7 @@ And here is testset example of typical scenario: get `token` at the beginning, a
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}
@@ -114,7 +114,7 @@ And here is testset example of typical scenario: get `token` at the beginning, a
json:
name: "user1"
password: "123456"
validators:
validate:
- {"check": "status_code", "comparator": "eq", "expected": 201}
- {"check": "content.success", "comparator": "eq", "expected": true}
```