mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-22 08:50:13 +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:
@@ -5,10 +5,10 @@
|
||||
- test:
|
||||
name: upload file
|
||||
variables:
|
||||
- field_name: "file"
|
||||
- file_path: "LICENSE"
|
||||
- file_type: "text/html"
|
||||
- multipart_encoder: ${multipart_encoder($field_name, $file_path, $file_type)}
|
||||
field_name: "file"
|
||||
file_path: "LICENSE"
|
||||
file_type: "text/html"
|
||||
multipart_encoder: ${multipart_encoder($field_name, $file_path, $file_type)}
|
||||
request:
|
||||
url: /post
|
||||
method: POST
|
||||
|
||||
Reference in New Issue
Block a user