mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-03 06:49:38 +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,10 +1,10 @@
|
||||
bind_variables:
|
||||
variables:
|
||||
- TOKEN: "debugtalk"
|
||||
- token: $TOKEN
|
||||
TOKEN: "debugtalk"
|
||||
token: $TOKEN
|
||||
|
||||
builtin_functions:
|
||||
variables:
|
||||
- length: ${len(debugtalk)}
|
||||
- smallest: ${min(2, 3, 8)}
|
||||
- largest: ${max(2, 3, 8)}
|
||||
length: ${len(debugtalk)}
|
||||
smallest: ${min(2, 3, 8)}
|
||||
largest: ${max(2, 3, 8)}
|
||||
|
||||
Reference in New Issue
Block a user