mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
change v3: add basic extract
This commit is contained in:
@@ -23,6 +23,9 @@ class TestCaseRequestMethodsHardcode(TestCaseRunner):
|
||||
"User-Agent": "HttpRunner/3.0"
|
||||
}
|
||||
},
|
||||
"extract": {
|
||||
"server": "headers.Server"
|
||||
},
|
||||
"validate": [
|
||||
{"eq": ["status_code", 200]},
|
||||
{"eq": ["headers.Server", "nginx"]}
|
||||
|
||||
Reference in New Issue
Block a user