mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-17 06:57:35 +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:
@@ -2,10 +2,10 @@
|
||||
- config:
|
||||
name: "user management testcase."
|
||||
variables:
|
||||
- user_agent: 'iOS/10.3'
|
||||
- device_sn: ${gen_random_string(15)}
|
||||
- os_platform: 'ios'
|
||||
- app_version: '2.8.6'
|
||||
user_agent: 'iOS/10.3'
|
||||
device_sn: ${gen_random_string(15)}
|
||||
os_platform: 'ios'
|
||||
app_version: '2.8.6'
|
||||
parameters:
|
||||
- user_agent: ['iOS', 'android']
|
||||
request:
|
||||
|
||||
Reference in New Issue
Block a user