ProfileComman #此处只是示例,关键字要写到02-Keyword目录不要写在此处
This commit is contained in:
@@ -13,8 +13,29 @@ Library Custometest
|
||||
*** Variables ***
|
||||
${url} /policy/profile/hijackfiles
|
||||
${profileId} ${EMPTY}
|
||||
*** Keywords ***
|
||||
|
||||
ProfileComman
|
||||
#此处只是示例,关键字要写到02-Keyword目录不要写在此处
|
||||
[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-test contentName=Create-Hijack Files-test-0.apk contentType=application/vnd.android.package-archive
|
||||
Comment 打印需要修改的json内容
|
||||
log ${objectedit}
|
||||
${response} ProfileComman ${objectedit} hijack
|
||||
##########################以上为封装示例###################################
|
||||
|
||||
|
||||
Hijack_file_24_type_apk-00000
|
||||
#Hijack 需要修改的内容
|
||||
${objectedit} Create Dictionary profileName=zmmhjacktest contentName=Create-Hijack Files-test-0.apk contentType=application/vnd.android.package-archive
|
||||
|
||||
Reference in New Issue
Block a user