mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
19 lines
435 B
YAML
19 lines
435 B
YAML
bind_variables:
|
|
variables:
|
|
- TOKEN: "debugtalk"
|
|
- token: $TOKEN
|
|
|
|
bind_lambda_functions:
|
|
function_binds:
|
|
add_one: "lambda x: x + 1"
|
|
add_two_nums: "lambda x, y: x + y"
|
|
variables:
|
|
- add1: ${add_one(2)}
|
|
- sum2nums: ${add_two_nums(2, 3)}
|
|
|
|
builtin_functions:
|
|
variables:
|
|
- length: ${len(debugtalk)}
|
|
- smallest: ${min(2, 3, 8)}
|
|
- largest: ${max(2, 3, 8)}
|