Files
httprunner/tests/data/demo_binds.yml
debugtalk 2ec2d3c2d8 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}
]
2018-11-28 12:14:06 +08:00

11 lines
216 B
YAML

bind_variables:
variables:
TOKEN: "debugtalk"
token: $TOKEN
builtin_functions:
variables:
length: ${len(debugtalk)}
smallest: ${min(2, 3, 8)}
largest: ${max(2, 3, 8)}