mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-15 20:38:44 +08:00
make extract in testcase template compatible with mapping style:
new mapping style:
extract: {
a: content.a,
b: text.b
}
Also, the former list style is still valid:
extract: [
{a: content.a},
{b: text.b}
]
This commit is contained in:
@@ -20,11 +20,9 @@
|
||||
{"expect_status_code": 200},
|
||||
{"token_len": 16}
|
||||
],
|
||||
"extract": [
|
||||
{
|
||||
"token": "content.token"
|
||||
}
|
||||
],
|
||||
"extract": {
|
||||
"token": "content.token"
|
||||
},
|
||||
"validate": [
|
||||
{"check": "status_code", "comparator": "eq", "expect": 200},
|
||||
{"eq": ["status_code", "$expect_status_code"]},
|
||||
|
||||
Reference in New Issue
Block a user