call function anywhere in testcase

This commit is contained in:
debugtalk
2017-08-01 11:33:31 +08:00
parent 7ad9d68252
commit 1535351548
2 changed files with 2 additions and 6 deletions

View File

@@ -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:

View File

@@ -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: