From 1535351548cfa27bf3743cb546fe77f1a9a5dc95 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Tue, 1 Aug 2017 11:33:31 +0800 Subject: [PATCH] call function anywhere in testcase --- tests/data/demo_testset_template_import_functions.yml | 4 +--- tests/data/demo_testset_template_lambda_functions.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/data/demo_testset_template_import_functions.yml b/tests/data/demo_testset_template_import_functions.yml index a64412c0..44e7feb7 100644 --- a/tests/data/demo_testset_template_import_functions.yml +++ b/tests/data/demo_testset_template_import_functions.yml @@ -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: diff --git a/tests/data/demo_testset_template_lambda_functions.yml b/tests/data/demo_testset_template_lambda_functions.yml index 72fa5615..7ea5c42e 100644 --- a/tests/data/demo_testset_template_lambda_functions.yml +++ b/tests/data/demo_testset_template_lambda_functions.yml @@ -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: