mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-09 22:44:05 +08:00
update demo testset: change position of variable binds
This commit is contained in:
@@ -68,7 +68,6 @@ optional arguments:
|
|||||||
- device_sn: ${gen_random_string(15)}
|
- device_sn: ${gen_random_string(15)}
|
||||||
- os_platform: 'ios'
|
- os_platform: 'ios'
|
||||||
- app_version: '2.8.6'
|
- app_version: '2.8.6'
|
||||||
- sign: ${get_sign($user_agent, $device_sn, $os_platform, $app_version)}
|
|
||||||
request:
|
request:
|
||||||
base_url: http://127.0.0.1:5000
|
base_url: http://127.0.0.1:5000
|
||||||
headers:
|
headers:
|
||||||
@@ -77,6 +76,8 @@ optional arguments:
|
|||||||
|
|
||||||
- test:
|
- test:
|
||||||
name: get token
|
name: get token
|
||||||
|
variable_binds:
|
||||||
|
- sign: ${get_sign($user_agent, $device_sn, $os_platform, $app_version)}
|
||||||
request:
|
request:
|
||||||
url: /api/get-token
|
url: /api/get-token
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
- device_sn: ${gen_random_string(15)}
|
- device_sn: ${gen_random_string(15)}
|
||||||
- os_platform: 'ios'
|
- os_platform: 'ios'
|
||||||
- app_version: '2.8.6'
|
- app_version: '2.8.6'
|
||||||
- sign: ${get_sign($user_agent, $device_sn, $os_platform, $app_version)}
|
|
||||||
request:
|
request:
|
||||||
base_url: http://127.0.0.1:5000
|
base_url: http://127.0.0.1:5000
|
||||||
headers:
|
headers:
|
||||||
@@ -16,6 +15,8 @@
|
|||||||
|
|
||||||
- test:
|
- test:
|
||||||
name: get token
|
name: get token
|
||||||
|
variable_binds:
|
||||||
|
- sign: ${get_sign($user_agent, $device_sn, $os_platform, $app_version)}
|
||||||
request:
|
request:
|
||||||
url: /api/get-token
|
url: /api/get-token
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
- device_sn: ${gen_random_string_lambda(15)}
|
- device_sn: ${gen_random_string_lambda(15)}
|
||||||
- os_platform: 'ios'
|
- os_platform: 'ios'
|
||||||
- app_version: '2.8.6'
|
- app_version: '2.8.6'
|
||||||
- sign: ${get_sign_lambda($user_agent, $device_sn, $os_platform, $app_version)}
|
|
||||||
request:
|
request:
|
||||||
base_url: http://127.0.0.1:5000
|
base_url: http://127.0.0.1:5000
|
||||||
headers:
|
headers:
|
||||||
@@ -26,6 +25,8 @@
|
|||||||
|
|
||||||
- test:
|
- test:
|
||||||
name: get token
|
name: get token
|
||||||
|
variable_binds:
|
||||||
|
- sign: ${get_sign_lambda($user_agent, $device_sn, $os_platform, $app_version)}
|
||||||
request:
|
request:
|
||||||
url: /api/get-token
|
url: /api/get-token
|
||||||
method: POST
|
method: POST
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
- config:
|
- config:
|
||||||
name: "create user testsets."
|
name: "create user testsets."
|
||||||
variable_binds:
|
variable_binds:
|
||||||
- user_agent: 'iOS/10.3'
|
|
||||||
- device_sn: 'HZfFBh6tU59EdXJ'
|
- device_sn: 'HZfFBh6tU59EdXJ'
|
||||||
- os_platform: 'ios'
|
|
||||||
- app_version: '2.8.6'
|
|
||||||
request:
|
request:
|
||||||
base_url: http://127.0.0.1:5000
|
base_url: http://127.0.0.1:5000
|
||||||
headers:
|
headers:
|
||||||
@@ -13,6 +10,11 @@
|
|||||||
|
|
||||||
- test:
|
- test:
|
||||||
name: get token
|
name: get token
|
||||||
|
variable_binds:
|
||||||
|
- user_agent: 'iOS/10.3'
|
||||||
|
- os_platform: 'ios'
|
||||||
|
- app_version: '2.8.6'
|
||||||
|
- sign: f1219719911caae89ccc301679857ebfda115ca2
|
||||||
request:
|
request:
|
||||||
url: /api/get-token
|
url: /api/get-token
|
||||||
method: POST
|
method: POST
|
||||||
@@ -23,7 +25,7 @@
|
|||||||
os_platform: $os_platform
|
os_platform: $os_platform
|
||||||
app_version: $app_version
|
app_version: $app_version
|
||||||
json:
|
json:
|
||||||
sign: f1219719911caae89ccc301679857ebfda115ca2
|
sign: $sign
|
||||||
extract_binds:
|
extract_binds:
|
||||||
- token: content.token
|
- token: content.token
|
||||||
validators:
|
validators:
|
||||||
|
|||||||
Reference in New Issue
Block a user