From 0ab1736a270d5f2cc124aa613170bdfc89fadca1 Mon Sep 17 00:00:00 2001 From: dongxiaoyan Date: Mon, 1 Jun 2020 18:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=89=8D=E5=85=AC=E5=85=B1=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=85=B3=E9=94=AE=E5=AD=97=EF=BC=8C=E7=AE=80=E5=8C=96?= =?UTF-8?q?case=E3=80=82=E7=BB=99=E6=9C=B1=E6=98=8E=E6=98=8E=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=EF=BC=8C=E6=9C=B1=E6=98=8E=E6=98=8E=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95=E6=95=B0=E6=8D=AE=E7=9A=84?= =?UTF-8?q?=E6=B8=85=E9=99=A4=EF=BC=8C=E5=B7=B2=E7=BB=8F=E6=B2=9F=E9=80=9A?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Hijack_file_24_type.robot | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/01-TestCase/tsg_bfapi/policy_file_interface/Hijack_file_24_type.robot b/01-TestCase/tsg_bfapi/policy_file_interface/Hijack_file_24_type.robot index bab5db2..864e84d 100644 --- a/01-TestCase/tsg_bfapi/policy_file_interface/Hijack_file_24_type.robot +++ b/01-TestCase/tsg_bfapi/policy_file_interface/Hijack_file_24_type.robot @@ -13,11 +13,26 @@ Library Custometest *** Variables *** ${url} /policy/profile/hijackfiles ${profileId} ${EMPTY} - +*** Keywords *** +ProfileComman + [Arguments] ${objectedit} ${type} + ${default_json} ${default_files} ${default_url} Run Keyword If "${type}"=="hijack" Set Variable ${setting_proxy_profiles_hijack} hijack_files/ /policy/profile/hijackfiles + ... ELSE IF Run Keyword If "${type}"=="insert" Set Variable ${setting_proxy_profiles_insert} insert_files/ /policy/profile/insertfiles + ... ELSE Set Variable a b c + + ${objectDict} Jsoneditmanu ${default_json} ${objectedit} + log ${objectDict} + ${response} CreatePolicyFile4 ${default_url} ${default_files} ${objectDict} + [Return] ${response} *** Test Cases *** +Hijack_file_24_type-test + #Hijack 需要修改的内容 + ${objectedit} Create Dictionary profileName=Hijack_file_24_type-00000 contentName=Create-Hijack Files-test-0.apk contentType=application/vnd.android.package-archive + ${response} ProfileComman ${objectedit} hijack + Hijack_file_24_type-00000 #Hijack 需要修改的内容 - ${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-0.apk contentType=application/vnd.android.package-archive + ${objectedit} Create Dictionary profileName=Hijack_file_24_type-00000 contentName=Create-Hijack Files-test-0.apk contentType=application/vnd.android.package-archive Comment 打印需要修改的json内容 log ${objectedit} ${objectDict} Jsoneditmanu ${setting_proxy_profiles_hijack} ${objectedit}