mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 06:59:32 +08:00
fix #278: len_eq for content
This commit is contained in:
@@ -89,5 +89,15 @@
|
||||
validate:
|
||||
- eq: ["status_code", 200]
|
||||
|
||||
- test:
|
||||
name: validate content length
|
||||
request:
|
||||
url: /spec.json
|
||||
method: GET
|
||||
validate:
|
||||
- len_eq: ["content", 9]
|
||||
- len_eq: ["json", 9]
|
||||
- len_eq: ["text", 9]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user