mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
call function anywhere in testcase
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
|
||||
- test:
|
||||
name: get token
|
||||
variable_binds:
|
||||
- sign: ${get_sign($user_agent, $device_sn, $os_platform, $app_version)}
|
||||
request:
|
||||
url: /api/get-token
|
||||
method: POST
|
||||
@@ -26,7 +24,7 @@
|
||||
os_platform: $os_platform
|
||||
app_version: $app_version
|
||||
json:
|
||||
sign: $sign
|
||||
sign: ${get_sign($user_agent, $device_sn, $os_platform, $app_version)}
|
||||
extract_binds:
|
||||
- token: content.token
|
||||
validators:
|
||||
|
||||
@@ -25,8 +25,6 @@
|
||||
|
||||
- test:
|
||||
name: get token
|
||||
variable_binds:
|
||||
- sign: ${get_sign_lambda($user_agent, $device_sn, $os_platform, $app_version)}
|
||||
request:
|
||||
url: /api/get-token
|
||||
method: POST
|
||||
@@ -36,7 +34,7 @@
|
||||
os_platform: $os_platform
|
||||
app_version: $app_version
|
||||
json:
|
||||
sign: $sign
|
||||
sign: ${get_sign_lambda($user_agent, $device_sn, $os_platform, $app_version)}
|
||||
extract_binds:
|
||||
- token: content.token
|
||||
validators:
|
||||
|
||||
Reference in New Issue
Block a user