1.修改关键字 2.新建DecryptionProfileCase文件替换Decryption_Profile_Case

This commit is contained in:
byb11
2020-12-29 14:02:57 +08:00
parent 7f086d6183
commit 54ed5eae57
2 changed files with 83 additions and 49 deletions

View File

@@ -1082,7 +1082,7 @@ Min_max_version
... AND click id=pro_max0
... ELSE log 错误
Create-Decryption_Profile
CreateDecryptionProfile
[Arguments] ${name} ${search} ${dict1}=null ${fail1}=null ${min1}=null ${max1}=null
Sleep 1
click id=children6 #点击一级目录Settings
@@ -1095,7 +1095,7 @@ Create-Decryption_Profile
Sleep 1
input id=insert_profileName ${name}
Sleep 1
Button_Switch ${dict1} //*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), " ")]/following-sibling::div/div el-switch is-checked el-switch
ButtonSwitch ${dict1} //*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), " ")]/following-sibling::div/div el-switch is-checked el-switch
${fail} Set Variable ${fail1}
run keyword if "${fail}"=="Fail-close" Run Keywords sleep 1
... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div[5]/div/div/label[1]/span
@@ -1155,21 +1155,21 @@ Create-Decryption_Profile
Should Be Equal As Strings ${name1} ${name}
Button_Switch
ButtonSwitch
[Arguments] ${dict1} ${xpath1} ${xpath2} ${open} ${close}
${dict} Set Variable ${dict1}
: FOR ${list} ${key} IN ENUMERATE @{dict}
\ ${class}= Get Element Attribute xpath=${xpath1}${key}${xpath2} class
\ run keyword if "${class}"=="${open}" and "${dict}[${key}]"=="1" log 默认开启,不进行操作
\ run keyword if "${class}"=="${open}" and "${dict}[${key}]"=="0" Run Keywords log 默认开启,但需求需要关闭,进行点击关闭按钮
\ ... AND sleep 1
\ ... AND click xpath=${xpath1}${key}${xpath2}/span
\ run keyword if "${class}"=="${close}" and "${dict}[${key}]"=="1" Run Keywords log 默认关闭,但需求需要开启,进行点击开启按钮
\ ... AND sleep 1
\ ... AND click xpath=${xpath1}${key}${xpath2}/span
\ run keyword if "${class}"=="${close}" and "${dict}[${key}]"=="0" log 默认关闭,不进行操作
Edit_Decryption Profile
FOR ${list} ${key} IN ENUMERATE @{dict}
${class}= Get Element Attribute xpath=${xpath1}${key}${xpath2} class
run keyword if "${class}"=="${open}" and "${dict}[${key}]"=="1" log 默认开启,不进行操作
run keyword if "${class}"=="${open}" and "${dict}[${key}]"=="0" Run Keywords log 默认开启,但需求需要关闭,进行点击关闭按钮
... AND sleep 1
... AND click xpath=${xpath1}${key}${xpath2}/span
run keyword if "${class}"=="${close}" and "${dict}[${key}]"=="1" Run Keywords log 默认关闭,但需求需要开启,进行点击开启按钮
... AND sleep 1
... AND click xpath=${xpath1}${key}${xpath2}/span
run keyword if "${class}"=="${close}" and "${dict}[${key}]"=="0" log 默认关闭,不进行操作
END
EditDecryptionProfile
[Arguments] ${id-name} ${name} ${search} ${dict1}=null ${fail1}=null ${min1}=null
... ${max1}=null
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
@@ -1186,7 +1186,7 @@ Edit_Decryption Profile
sleep 1
input id=insert_profileName ${name} #输入name
sleep 1
Button_Switch ${dict1} //*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), " ")]/following-sibling::div/div el-switch is-checked el-switch
ButtonSwitch ${dict1} //*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), " ")]/following-sibling::div/div el-switch is-checked el-switch
${fail} Set Variable ${fail1}
run keyword if "${fail}"=="Fail-close" Run Keywords sleep 1
... AND click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[6]/div[5]/div/div/label[1]/span