mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-06 08:19:45 +08:00
make variables in testcase template compatible with mapping style:
new mapping style:
"variables": {
"a": 1,
"b": 2
}
Also, the former list style is still valid:
"variables": [
{"a": 1},
{"b": 2}
]
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
- config:
|
||||
name: "123$var_a"
|
||||
variables:
|
||||
- var_a: 0
|
||||
- var_c: "${sum_two(1, 2)}"
|
||||
- PROJECT_KEY: ${ENV(PROJECT_KEY)}
|
||||
var_a: 0
|
||||
var_c: "${sum_two(1, 2)}"
|
||||
PROJECT_KEY: ${ENV(PROJECT_KEY)}
|
||||
# parameters:
|
||||
# - "var_a-var_b":
|
||||
# - [11, 21]
|
||||
|
||||
Reference in New Issue
Block a user