call function anywhere in testcase

This commit is contained in:
httprunner
2017-08-01 11:33:31 +08:00
parent 60ef698ee6
commit 5829e8d21b
2 changed files with 2 additions and 6 deletions
@@ -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: