mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-17 18:42:28 +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:
@@ -296,7 +296,7 @@ def load_test(raw_testinfo):
|
||||
"api": "api_add_cart",
|
||||
"variables": [],
|
||||
"validate": [],
|
||||
"extract": []
|
||||
"extract": {}
|
||||
}
|
||||
# testcase reference
|
||||
{
|
||||
@@ -310,7 +310,7 @@ def load_test(raw_testinfo):
|
||||
"request": {},
|
||||
"variables": [],
|
||||
"validate": [],
|
||||
"extract": []
|
||||
"extract": {}
|
||||
}
|
||||
|
||||
Returns:
|
||||
|
||||
Reference in New Issue
Block a user