mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 23:51:25 +08:00
call function anywhere in testcase
This commit is contained in:
@@ -15,8 +15,6 @@
|
|||||||
|
|
||||||
- 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
|
||||||
@@ -26,7 +24,7 @@
|
|||||||
os_platform: $os_platform
|
os_platform: $os_platform
|
||||||
app_version: $app_version
|
app_version: $app_version
|
||||||
json:
|
json:
|
||||||
sign: $sign
|
sign: ${get_sign($user_agent, $device_sn, $os_platform, $app_version)}
|
||||||
extract_binds:
|
extract_binds:
|
||||||
- token: content.token
|
- token: content.token
|
||||||
validators:
|
validators:
|
||||||
|
|||||||
@@ -25,8 +25,6 @@
|
|||||||
|
|
||||||
- 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
|
||||||
@@ -36,7 +34,7 @@
|
|||||||
os_platform: $os_platform
|
os_platform: $os_platform
|
||||||
app_version: $app_version
|
app_version: $app_version
|
||||||
json:
|
json:
|
||||||
sign: $sign
|
sign: ${get_sign_lambda($user_agent, $device_sn, $os_platform, $app_version)}
|
||||||
extract_binds:
|
extract_binds:
|
||||||
- token: content.token
|
- token: content.token
|
||||||
validators:
|
validators:
|
||||||
|
|||||||
Reference in New Issue
Block a user