1、提交objects优化关键字(已完成)
2、提交安全策略关键字(未完成)
This commit is contained in:
18
01-TestCase/tsg_ui/ui_security/Security.robot
Normal file
18
01-TestCase/tsg_ui/ui_security/Security.robot
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Force Tags tsg-ui objects tags
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/securityPolicy/SecurityPolicy.robot
|
||||||
|
Library OperatingSystem
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/Menu.robot
|
||||||
|
|
||||||
|
|
||||||
|
*** Test Cases ***
|
||||||
|
case001
|
||||||
|
Menu policys Security Policy
|
||||||
|
SecurityPolicy.CreateButton
|
||||||
|
SecurityPolicy.Create-name case001
|
||||||
|
SecurityPolicy.Create-action deny
|
||||||
|
#SecurityPolicy.Create-Source-Button
|
||||||
|
#SecurityPolicy.Create-Source type1=Ip CreateOrSearch=Create Add=Address name=zdhip001 ipclienttext1=192.168.100.1 post=1
|
||||||
|
SecurityPolicy.Create-Destination-Button
|
||||||
|
SecurityPolicy.Create-Destination type1=Ip CreateOrSearch=Create Add=Address name=zdhip001 ipclienttext1=192.168.100.1 post=1
|
||||||
|
|
||||||
@@ -61,13 +61,24 @@ Create-item
|
|||||||
... AND Create-ip-ClientIP-text ${ipclienttext1} ${post}
|
... AND Create-ip-ClientIP-text ${ipclienttext1} ${post}
|
||||||
run keyword if "${objectform}"=="IP" and "${ip_type}"=="Geography" run keywords click element id=objectAdd_ip1
|
run keyword if "${objectform}"=="IP" and "${ip_type}"=="Geography" run keywords click element id=objectAdd_ip1
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[2]/div/form/div[4]/div/div[1]/div[2]
|
... AND click element //*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[1]/div[2]
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[2]/div/form/div[4]/div/div[1]/div[1]/div[3]
|
|
||||||
... AND Create-Geography ${Country} ${City}
|
... AND Create-Geography ${Country} ${City}
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND click element id=interceptionadd_allcancelobject
|
... AND click element id=interceptionadd_allcancelobjec3t
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
|
run keyword if "${objectform}"=="IP" and "${ip_type}"=="IPLearning" run keywords click element id=objectAdd_ip2
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[1]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[4]/div/div[1]/div[2]/div[1]/div[1]/form/div[1]/div/div[1]/input ${fqdn}
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[1]/div/div/div[2]
|
||||||
|
... AND Learn-From-Protocols ${Protocols1}
|
||||||
|
... AND Learning-Depth ${Degree}
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[3]/div/div[1]/input ${times}
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[4]/div/div[1]/input ${numbers}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[5]/div/div[1]/input ${limits}
|
||||||
run keyword if "${objectform}"=="FQDN" or "${objectform}"=="URL" or "${objectform}"=="Account" run keywords click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[3]/div/div[1]
|
run keyword if "${objectform}"=="FQDN" or "${objectform}"=="URL" or "${objectform}"=="Account" run keywords click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[3]/div/div[1]
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND Create-keyword-text ${objectform} ${keywordtext}
|
... AND Create-keyword-text ${objectform} ${keywordtext}
|
||||||
@@ -98,17 +109,17 @@ Create-item--groupadd
|
|||||||
# Click element xpath=//*[@id="el-popover-2756"]/div[1]/div[2]/div/div[8]/div
|
# Click element xpath=//*[@id="el-popover-2756"]/div[1]/div[2]/div/div[8]/div
|
||||||
|
|
||||||
|
|
||||||
run keyword if "${objectform}"=="IP" and "${ip_type}"=="Ip" run keywords click element xpath=//*[@id="policy_Manipulation2"]/div[2]/div[2]/div/form/div[4]/div/div[1]
|
run keyword if "${objectform}"=="IP" and "${ip_type}"=="Ip" run keywords click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div/div[2]
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND Create-ip-ClientIP-text ${ipclienttext1} ${post}
|
... AND Create-ip-ClientIP-text ${ipclienttext1} ${post}
|
||||||
run keyword if "${objectform}"=="IP" and "${ip_type}"=="Geography" run keywords click element xpath=//*[@id="objectAdd_geography"]
|
run keyword if "${objectform}"=="IP" and "${ip_type}"=="Geography" run keywords click element id=objectAdd_ip1
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND click element id=objectAddItemAdd
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div/div[2]
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND Create-Geography ${Country} ${City}
|
... AND Create-Geography ${Country} ${City}
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND click element id=interceptionadd_allcancelobject
|
... AND click element id=interceptionadd_allcancelobjec3t
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
run keyword if "${objectform}"=="FQDN" or "${objectform}"=="SubscriberID" or "${objectform}"=="URL" or "${objectform}"=="Category" or "${objectform}"=="Account" run keywords click element xpath=//*[@id="objects_ip3"]/div[1]/div[2]/form/div[3]/div/div[1]/div[2]/p[2]
|
run keyword if "${objectform}"=="FQDN" or "${objectform}"=="SubscriberID" or "${objectform}"=="URL" or "${objectform}"=="Category" or "${objectform}"=="Account" run keywords click element xpath=//*[@id="objects_ip3"]/div[1]/div[2]/form/div[3]/div/div[1]/div[2]/p[2]
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND Create-keyword-text-group ${objectform} ${keywordtext}
|
... AND Create-keyword-text-group ${objectform} ${keywordtext}
|
||||||
@@ -127,7 +138,29 @@ Create-item--groupadd
|
|||||||
... AND Create-ReqRes-hexmode ${hex}
|
... AND Create-ReqRes-hexmode ${hex}
|
||||||
... AND Create-item-ok ${objectform}
|
... AND Create-item-ok ${objectform}
|
||||||
|
|
||||||
|
Learn-From-Protocols
|
||||||
|
[Arguments] ${Protocols1}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
|
... ${Protocols1}:填入HTTP或SSL或者HTTPSSL
|
||||||
|
... 判断选择用什么样的协议
|
||||||
|
run keyword if "${Protocols1}"=="HTTP" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/div[6]/div[1]/div[1]/ul/li[1]
|
||||||
|
run keyword if "${Protocols1}"=="SSL" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/div[6]/div[1]/div[1]/ul/li[2]
|
||||||
|
run keyword if "${Protocols1}"=="HTTPSSL" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/div[6]/div[1]/div[1]/ul/li[1]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element xpath=/html/body/div[6]/div[1]/div[1]/ul/li[2]
|
||||||
|
|
||||||
|
Learning-Depth
|
||||||
|
[Arguments] ${Degree}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
|
... ${Degree}:填入1Degree或2Degree
|
||||||
|
... 判断是用1Degree或2Degree
|
||||||
|
run keyword if "${Degree}"=="1Degree" run keywords sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[2]/div/div/label[1]
|
||||||
|
run keyword if "${Degree}"=="2Degree" run keywords sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[2]/div/div/label[2]
|
||||||
swatches_btn
|
swatches_btn
|
||||||
Create-item-Add
|
Create-item-Add
|
||||||
[Arguments] ${Type}
|
[Arguments] ${Type}
|
||||||
@@ -649,7 +682,7 @@ Cerate-Group-groupadd
|
|||||||
... AND Create-ok-groupadd
|
... AND Create-ok-groupadd
|
||||||
... AND Create-Sub-Objects ${object_name}
|
... AND Create-Sub-Objects ${object_name}
|
||||||
Create-Sub-Objects-groupadd
|
Create-Sub-Objects-groupadd
|
||||||
[Arguments] ${buildType} ${groupaddType} ${name} ${objectform} ${groupadd} ${object_name} ${objectform} ${ip_type} ${ipclienttext1} ${keywordtext} ${hex} ${reqrestype} ${reqresheader}
|
[Arguments] ${buildType} ${groupaddType} ${name} ${objectform} ${groupadd} ${object_name} ${ip_type} ${ipclienttext1} ${keywordtext} ${hex} ${reqrestype} ${reqresheader}
|
||||||
... ${post} ${Country} ${City}
|
... ${post} ${Country} ${City}
|
||||||
sleep 1
|
sleep 1
|
||||||
click element id=objectAddSubAdd1
|
click element id=objectAddSubAdd1
|
||||||
@@ -658,7 +691,7 @@ Create-Sub-Objects-groupadd
|
|||||||
Create-name-groupadd ${name}
|
Create-name-groupadd ${name}
|
||||||
${groupadd} Set Variable close
|
${groupadd} Set Variable close
|
||||||
run keyword if "${groupaddType}"=="singletype" NewObject.Create-item--groupadd ${buildType} ${name} ${objectform} ${ip_type} ${ipclienttext1} ${keywordtext} ${hex} ${reqrestype} ${reqresheader} ${post} ${Country} ${City}
|
run keyword if "${groupaddType}"=="singletype" NewObject.Create-item--groupadd ${buildType} ${name} ${objectform} ${ip_type} ${ipclienttext1} ${keywordtext} ${hex} ${reqrestype} ${reqresheader} ${post} ${Country} ${City}
|
||||||
run keyword if "${groupaddType}"=="grouptype" NewObject.Cerate-Group-groupadd ${buildType} ${name} ${objectform} ${groupadd} ${object_name} ${objectform} ${ip_type} ${ipclienttext1} ${keywordtext} ${hex} ${reqrestype} ${reqresheader} ${post} ${Country} ${City}
|
run keyword if "${groupaddType}"=="grouptype" NewObject.Cerate-Group-groupadd ${buildType} ${name} ${objectform} ${groupadd} ${object_name} ${ip_type} ${ipclienttext1} ${keywordtext} ${hex} ${reqrestype} ${reqresheader} ${post} ${Country} ${City}
|
||||||
|
|
||||||
|
|
||||||
Select-ip_type-group
|
Select-ip_type-group
|
||||||
@@ -666,7 +699,7 @@ Select-ip_type-group
|
|||||||
run keyword if "${ip_type}"=="Ip" sleep 1
|
run keyword if "${ip_type}"=="Ip" sleep 1
|
||||||
|
|
||||||
run keyword if "${ip_type}"=="Geography" run keywords sleep 1
|
run keyword if "${ip_type}"=="Geography" run keywords sleep 1
|
||||||
... AND click element xpath=//*[@id="objects_ip3"]/div[1]/div[2]/form/div[3]/div/div/label[2]
|
... AND click element id=objectAdd_ip1
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
Select-ip_type
|
Select-ip_type
|
||||||
[Arguments] ${ip_type}
|
[Arguments] ${ip_type}
|
||||||
|
|||||||
@@ -1,259 +1,673 @@
|
|||||||
*** Settings ***
|
*** Settings ***
|
||||||
Library Selenium2Library
|
Library Selenium2Library
|
||||||
|
Resource ../objects/NewObject.robot
|
||||||
*** Keywords ***
|
|
||||||
CreateButton
|
*** Keywords ***
|
||||||
Wait Until Element Is Enabled id=proxyInterception_create
|
CreateButton
|
||||||
sleep 3
|
[Documentation] 点击安全策略中的Create按钮
|
||||||
click element id=proxyInterception_create
|
Wait Until Element Is Enabled id=app_create
|
||||||
|
sleep 3
|
||||||
Create-name
|
click element id=app_create
|
||||||
[Arguments] ${name}
|
|
||||||
sleep 2
|
Create-name
|
||||||
input text id=interceptionadd_name ${name}
|
[Arguments] ${name}
|
||||||
|
[Documentation] 输入name
|
||||||
Create-action
|
sleep 2
|
||||||
[Arguments] ${action}
|
input text id=interceptionadd_name ${name}
|
||||||
run keyword if "${action}"=="allow" run keywords sleep 1
|
|
||||||
... AND click element id=security_action_Allow
|
Create-action
|
||||||
... ELSE IF "${action}"=="deny" run keywords sleep 1
|
[Arguments] ${action}
|
||||||
... AND click element id=security_action_Deny
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
... ELSE IF "${action}"=="monitor" run keywords sleep 1
|
... ${action}:填入allow或deny或monitor或intercept
|
||||||
... AND click element id=security_action_Monitor
|
... 判断要创建什么动作的策略
|
||||||
... ELSE IF "${action}"=="intercept" run keywords sleep 1
|
sleep 1
|
||||||
... AND click element id=security_action_Intercept
|
run keyword if "${action}"=="allow" run keywords sleep 1
|
||||||
|
... AND click element id=security_action_allow
|
||||||
Create-Conditions
|
... ELSE IF "${action}"=="deny" run keywords sleep 1
|
||||||
sleep 2
|
... AND click element id=security_action_deny
|
||||||
click element id=interceptionadd_object
|
... ELSE IF "${action}"=="monitor" run keywords sleep 1
|
||||||
|
... AND click element id=security_action_monitor
|
||||||
Create-Conditions-ip
|
... ELSE IF "${action}"=="intercept" run keywords sleep 1
|
||||||
[Arguments] ${objname}
|
... AND click element id=security_action_intercept
|
||||||
sleep 2
|
|
||||||
click element id=interceptionadd_procolall1
|
Create-Source-Button
|
||||||
sleep 2
|
[Documentation] 点击Source的加号
|
||||||
SecurityPolicy.SelectOne ${objname}
|
sleep 2
|
||||||
|
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[4]/div[1]/div/div
|
||||||
Create-Conditions-sub
|
|
||||||
[Arguments] ${objname}
|
Create-Destination-Button
|
||||||
sleep 2
|
[Documentation] 点击Destination的加号
|
||||||
click element id=interceptionadd_procolall2
|
sleep 2
|
||||||
sleep 2
|
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[1]/div/div
|
||||||
SecurityPolicy.SelectOne ${objname}
|
Create-Application-Button
|
||||||
|
[Documentation] 点击Application的加号
|
||||||
Create-Conditions-protocol
|
sleep 2
|
||||||
[Arguments] ${protocol}
|
click element id=interceptionadd_application
|
||||||
sleep 2
|
|
||||||
click element id=interceptionadd_procolall3
|
ApplicationSearch
|
||||||
sleep 2
|
[Arguments] ${Application}
|
||||||
run keyword if '${protocol}'=='http' run keywords sleep 1
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
... AND click element id=interceptionadd_prochange0
|
... ${Application}:填入是Application的内容,例如SSL或HTTP
|
||||||
... ELSE IF '${protocol}'=='ssl' run keywords sleep 1
|
... 选择search对象
|
||||||
... AND click element id=interceptionadd_prochange1
|
input text xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[5]/div[2]/div[2]/div/div[1]/input ${i}
|
||||||
... ELSE IF '${protocol}'=='dns' run keywords sleep 1
|
sleep 1
|
||||||
... AND click element id=interceptionadd_prochange2
|
press keys xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[5]/div[2]/div[2]/div/div[1]/input ENTER
|
||||||
... ELSE IF '${protocol}'=='mail' run keywords sleep 1
|
sleep 1
|
||||||
... AND click element id=interceptionadd_prochange3
|
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[5]/div[2]/div[2]/div/div[2]/div/div/ul/li[1]
|
||||||
... ELSE IF '${protocol}'=='ftp' run keywords sleep 1
|
sleep 1
|
||||||
... AND click element id=interceptionadd_prochange4
|
|
||||||
... ELSE log 协议内容错误
|
Create-Source
|
||||||
|
[Arguments] ${type1}=null ${CreateOrSearch}=null ${Add}=null ${name}=null
|
||||||
Create-Conditions-Search
|
... ${object_name}=null ${ipclienttext1}=null ${post}=null ${Country}=null ${City}=null
|
||||||
[Arguments] ${Search}
|
... ${Protocols1}=null ${Degree}=null ${times}=null ${numbers}=null ${limits}=null ${keywordtext}=null
|
||||||
input text xpath=//*[@id="proxy"]/div[5]/div[2]/div[2]/div/div[1]/input ${Search}
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
sleep 2
|
... ${type1}:填入Ip或SUBID或Geography或IPLearning
|
||||||
|
... ${CreateOrSearch}:填入Create或者Search
|
||||||
Create-Conditions-Close
|
... ${Add}:填入Address或Group
|
||||||
click button id=interceptionadd_allcancelobject
|
... ${name}:名称
|
||||||
sleep 2
|
... ${ip_type}:填入Ip或者Geography或者IPLearning
|
||||||
|
... ${ipclienttext1}:填入IPV4或6的值或range的ip段
|
||||||
Create-Tag
|
... ${post}:填入端口
|
||||||
|
... ${Country}:列表形式,列表中是国家名字
|
||||||
Create-EffectiveDevices
|
... ${City}:列表形式,列表中是城市名字
|
||||||
|
... ${Protocols1}:填入HTTP或SSL或HTTPSSL
|
||||||
Create-Schedule
|
... ${Degree}:填入1Degree或2Degree
|
||||||
|
... ${times}:填入小时数,例如1或2
|
||||||
Create-Log Session
|
... ${numbers}:填入数值,例如1或10000
|
||||||
|
... ${limits}:填入数值,例如1或10000
|
||||||
Create-Description
|
... ${object_name}:列表形式,列表中是对象的名字
|
||||||
|
... ${keywordtext}:填入新建subid的内容
|
||||||
Create-Enabled
|
... 判断新建source选择用什么样的类型数据
|
||||||
[Arguments] ${state}
|
run keyword if "${type1}"=="Ip" run keywords sleep 1
|
||||||
sleep 2
|
... AND click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[4]/div[2]/div[1]/div[2]/div[1]/div/div/div/div[1]/div/div/div/div[1]
|
||||||
run keyword if "${state}"=="open" run keywords click element id=enablencheck_swith
|
... AND sleep 1
|
||||||
... AND sleep 2
|
... AND sleep 1
|
||||||
... AND click button id=interceptionadd-enable-confirm
|
... AND SourceSourceIPCreateOrSearch ${CreateOrSearch} ${Add} ${type1} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
|
... ELSE IF "${type1}"=="SUBID" run keywords sleep 1
|
||||||
Create-ok
|
... AND click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[4]/div[2]/div[1]/div[2]/div[1]/div/div/div/div[1]/div/div/div/div[2]
|
||||||
execute javascript document.documentElement.scrollTop=1000
|
... AND sleep 1
|
||||||
sleep 2
|
... AND SUBIDCreateOrSearch ${name} ${keywordtext} ${object_name}
|
||||||
click button id=interceptionadd_sub
|
... ELSE IF "${type1}"=="Geography" run keywords sleep 1
|
||||||
sleep 1
|
... AND click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[4]/div[2]/div[1]/div[2]/div[1]/div/div/div/div[1]/div/div/div/div[3]
|
||||||
execute javascript document.documentElement.scrollTop=0
|
... AND sleep 1
|
||||||
|
... AND SourceIPCreateOrSearch ${CreateOrSearch} ${Add} ${type1} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
Create-cancel
|
... ELSE IF "${type1}"=="IPLearning" run keywords sleep 1
|
||||||
click button id=interceptionadd_back
|
... AND click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[4]/div[2]/div[1]/div[2]/div[1]/div/div/div/div[1]/div/div/div/div[4]
|
||||||
|
... AND sleep 1
|
||||||
Create-Conditions-obj
|
... AND SourceIPCreateOrSearch ${CreateOrSearch} ${Add} ${type1} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
[Arguments] ${action} ${protocol} ${objtype} ${objname} ${objtype1}=null
|
|
||||||
run keyword if '${action}'=='allow' and '${protocol}'=='http' run keywords sleep 1
|
Create-Destination
|
||||||
... AND click element id=interceptionadd_prochange0
|
[Arguments] ${type1}=null ${CreateOrSearch}=null ${Add}=null ${name}=null
|
||||||
... AND Create-Conditions-allow&intercept-http ${objtype} ${objname}
|
... ${object_name}=null ${ipclienttext1}=null ${post}=null ${Country}=null ${City}=null
|
||||||
... ELSE IF '${action}'=='intercept' and '${protocol}'=='http' run keywords sleep 1
|
... ${Protocols1}=null ${Degree}=null ${times}=null ${numbers}=null ${limits}=null ${keywordtext}=null
|
||||||
... AND click element id=interceptionadd_prochange0
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
... AND Create-Conditions-allow&intercept-http ${objtype} ${objname}
|
... ${type1}:填入Ip或SUBID或Geography或IPLearning
|
||||||
... ELSE IF '${action}'=='allow' and '${protocol}'=='ssl' run keywords sleep 1
|
... ${CreateOrSearch}:填入Create或者Search
|
||||||
... AND click element id=interceptionadd_prochange1
|
... ${Add}:填入Address或Group
|
||||||
... AND Create-Conditions-allow&intercept-ssl ${objtype} ${objname}
|
... ${name}:名称
|
||||||
... ELSE IF '${action}'=='intercept' and '${protocol}'=='ssl' run keywords sleep 1
|
... ${ip_type}:填入Ip或者Geography或者IPLearning
|
||||||
... AND click element id=interceptionadd_prochange1
|
... ${ipclienttext1}:填入IPV4或6的值或range的ip段
|
||||||
... AND Create-Conditions-allow&intercept-ssl ${objtype} ${objname}
|
... ${post}:填入端口
|
||||||
... ELSE IF '${action}'=='deny' and '${protocol}'=='http' run keywords sleep 1
|
... ${Country}:列表形式,列表中是国家名字
|
||||||
... AND click element id=interceptionadd_prochange0
|
... ${City}:列表形式,列表中是城市名字
|
||||||
... AND Create-Conditions-deny&monitor-http ${objtype} ${objname}
|
... ${Protocols1}:填入HTTP或SSL或HTTPSSL
|
||||||
... ELSE IF '${action}'=='monitor' and '${protocol}'=='http' run keywords sleep 1
|
... ${Degree}:填入1Degree或2Degree
|
||||||
... AND click element id=interceptionadd_prochange0
|
... ${times}:填入小时数,例如1或2
|
||||||
... AND Create-Conditions-deny&monitor-http ${objtype} ${objname}
|
... ${numbers}:填入数值,例如1或10000
|
||||||
... ELSE IF '${action}'=='deny' and '${protocol}'=='ssl' run keywords sleep 1
|
... ${limits}:填入数值,例如1或10000
|
||||||
... AND click element id=interceptionadd_prochange1
|
... ${object_name}:列表形式,列表中是对象的名字
|
||||||
... AND Create-Conditions-deny&monitor-ssl ${objtype1} ${objtype} ${objname}
|
... ${keywordtext}:填入新建subid的内容
|
||||||
... ELSE IF '${action}'=='monitor' and '${protocol}'=='ssl' run keywords sleep 1
|
... 判断新建source选择用什么样的类型数据
|
||||||
... AND click element id=interceptionadd_prochange1
|
run keyword if "${type1}"=="Ip" run keywords sleep 1
|
||||||
... AND Create-Conditions-deny&monitor-ssl ${objtype1} ${objtype} ${objname}
|
... AND click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[1]/div[2]/div[1]/div/div/div/div[1]/div/div/div/div[1]
|
||||||
... ELSE IF '${action}'=='deny' and '${protocol}'=='dns' run keywords sleep 1
|
... AND sleep 1
|
||||||
... AND click element id=interceptionadd_prochange2
|
... AND sleep 1
|
||||||
... AND Create-Conditions-deny&monitor-dns ${objtype} ${objname}
|
... AND DestinationIPCreateOrSearch ${CreateOrSearch} ${Add} ${type1} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
... ELSE IF '${action}'=='monitor' and '${protocol}'=='dns' run keywords sleep 1
|
... ELSE IF "${type1}"=="Geography" run keywords sleep 1
|
||||||
... AND click element id=interceptionadd_prochange2
|
... AND click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[1]/div[2]/div[1]/div/div/div/div[1]/div/div/div/div[3]
|
||||||
... AND Create-Conditions-deny&monitor-dns ${objtype} ${objname}
|
... AND sleep 1
|
||||||
... ELSE IF '${action}'=='deny' and '${protocol}'=='mail' run keywords sleep 1
|
... AND DestinationIPCreateOrSearch ${CreateOrSearch} ${Add} ${type1} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
... AND click element id=interceptionadd_prochange3
|
... ELSE IF "${type1}"=="IPLearning" run keywords sleep 1
|
||||||
... AND Create-Conditions-deny&monitor-mail ${objtype} ${objname}
|
... AND click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[1]/div[2]/div[1]/div/div/div/div[1]/div/div/div/div[4]
|
||||||
... ELSE IF '${action}'=='monitor' and '${protocol}'=='mail' run keywords sleep 1
|
... AND sleep 1
|
||||||
... AND click element id=interceptionadd_prochange3
|
... AND DestinationCreateOrSearch ${CreateOrSearch} ${Add} ${type1} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
... AND Create-Conditions-deny&monitor-mail ${objtype} ${objname}
|
|
||||||
... ELSE IF '${action}'=='deny' and '${protocol}'=='ftp' run keywords sleep 1
|
|
||||||
... AND click element id=interceptionadd_prochange4
|
SourceIPCreateOrSearch
|
||||||
... AND Create-Conditions-deny&monitor-ftp ${objtype} ${objname}
|
[Arguments] ${CreateOrSearch} ${Add} ${ip_type} ${name} ${object_name} ${ipclienttext1}
|
||||||
... ELSE IF '${action}'=='monitor' and '${protocol}'=='ftp' run keywords sleep 1
|
... ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
... AND click element id=interceptionadd_prochange4
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
... AND Create-Conditions-deny&monitor-ftp ${objtype} ${objname}
|
... ${CreateOrSearch}:填入Create或者Search
|
||||||
... ELSE log 对象错误
|
... ${Add}:填入Address或Group
|
||||||
|
... ${name}:名称
|
||||||
Create-Conditions-allow&intercept-http
|
... ${ip_type}:填入Ip或者Geography或者IPLearning
|
||||||
[Arguments] ${objtype} ${objname}
|
... ${ipclienttext1}:填入IPV4或6的值或range的ip段
|
||||||
sleep 2
|
... ${post}:填入端口
|
||||||
run keyword if '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
... ${Country}:列表形式,列表中是国家名字
|
||||||
... AND sleep 2
|
... ${City}:列表形式,列表中是城市名字
|
||||||
... ELSE IF '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
... ${Protocols1}:填入HTTP或SSL或HTTPSSL
|
||||||
... AND sleep 2
|
... ${Degree}:填入1Degree或2Degree
|
||||||
... ELSE log 对象错误
|
... ${times}:填入小时数,例如1或2
|
||||||
SecurityPolicy.SelectOne ${objname}
|
... ${numbers}:填入数值,例如1或10000
|
||||||
|
... ${limits}:填入数值,例如1或10000
|
||||||
Create-Conditions-allow&intercept-ssl
|
... ${object_name}:列表形式,列表中是对象的名字
|
||||||
[Arguments] ${objtype} ${objname}
|
... 判断是新建ip还是搜索添加ip
|
||||||
sleep 2
|
run keyword if "${CreateOrSearch}"=="Create" run keywords sleep 1
|
||||||
run keyword if '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
... AND click element id=interceptionadd_proaddaddSource
|
||||||
... AND sleep 2
|
... AND SourceIPAdd ${Add} ${ip_type} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
... ELSE IF '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
... ELSE IF "${CreateOrSearch}"=="Search" run keywords sleep 1
|
||||||
... AND sleep 2
|
... AND SourceSearchSearch ${object_name}
|
||||||
... ELSE log 对象错误
|
SUBIDCreateOrSearch
|
||||||
SecurityPolicy.SelectOne ${objname}
|
[Arguments] ${name} ${keywordtext} ${object_name}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
Create-Conditions-deny&monitor-http
|
... ${CreateOrSearch}:填入Create或者Search
|
||||||
[Arguments] ${objtype} ${objname}
|
... ${name}:名称
|
||||||
sleep 2
|
... ${keywordtext}:填入新建subid的内容
|
||||||
run keyword if '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
... ${object_name}:列表形式,列表中是对象的名字
|
||||||
... AND sleep 2
|
... 判断是新建subid还是搜索添加subid
|
||||||
... ELSE IF '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
run keyword if "${CreateOrSearch}"=="Create" run keywords sleep 1
|
||||||
... AND sleep 2
|
... AND click element id=interceptionadd_proaddaddSource
|
||||||
... ELSE IF '${objtype}'=='Url' run keywords click element id=interceptionadd_pro1
|
... AND SUBIDAdd ${Add} ${name} ${keywordtext} ${object_name}
|
||||||
... AND sleep 2
|
... ELSE IF "${CreateOrSearch}"=="Search" run keywords sleep 1
|
||||||
... ELSE IF '${objtype}'=='Reqhdr' run keywords click element id=interceptionadd_pro2
|
... AND SourceSearchSearch ${object_name}
|
||||||
... AND sleep 2
|
DestinationIPCreateOrSearch
|
||||||
... ELSE IF '${objtype}'=='Reshdr' run keywords click element id=interceptionadd_pro3
|
[Arguments] ${CreateOrSearch} ${Add} ${ip_type} ${name} ${object_name} ${ipclienttext1}
|
||||||
... AND sleep 2
|
... ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
... ELSE IF '${objtype}'=='Reqbody' run keywords click element id=interceptionadd_pro4
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
... AND sleep 2
|
... ${CreateOrSearch}:填入Create或者Search
|
||||||
... ELSE IF '${objtype}'=='Resbody' run keywords click element id=interceptionadd_pro5
|
... ${Add}:填入Address或Group
|
||||||
... AND sleep 2
|
... ${name}:名称
|
||||||
... ELSE log 对象错误
|
... ${ip_type}:填入Ip或者Geography或者IPLearning
|
||||||
SecurityPolicy.SelectOne ${objname}
|
... ${ipclienttext1}:填入IPV4或6的值或range的ip段
|
||||||
|
... ${post}:填入端口
|
||||||
Create-Conditions-deny&monitor-ssl
|
... ${Country}:列表形式,列表中是国家名字
|
||||||
[Arguments] ${objtype1} ${objtype} ${objname}
|
... ${City}:列表形式,列表中是城市名字
|
||||||
sleep 2
|
... ${Protocols1}:填入HTTP或SSL或HTTPSSL
|
||||||
run keyword if '${objtype1}'=='sni' and '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
... ${Degree}:填入1Degree或2Degree
|
||||||
... AND sleep 2
|
... ${times}:填入小时数,例如1或2
|
||||||
... ELSE IF '${objtype1}'=='sni' and '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
... ${numbers}:填入数值,例如1或10000
|
||||||
... AND sleep 2
|
... ${limits}:填入数值,例如1或10000
|
||||||
... ELSE IF ${objtype1}'=='cn' and ${objtype}'=='Fqdn' run keywords click element id=interceptionadd_pro1
|
... ${object_name}:列表形式,列表中是对象的名字
|
||||||
... AND sleep 2
|
... 判断是新建ip还是搜索添加ip
|
||||||
... AND click element xpath=//*[@id="interceptionadd_pro1"]/div[2]
|
run keyword if "${CreateOrSearch}"=="Create" run keywords sleep 1
|
||||||
... AND sleep 2
|
... AND click element id=interceptionadd_proaddaddDestination
|
||||||
... ELSE IF ${objtype1}'=='cn' and${objtype}'=='Category' run keywords click element id=interceptionadd_pro1
|
... AND DestinationIPAdd ${Add} ${ip_type} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
... AND sleep 2
|
... ELSE IF "${CreateOrSearch}"=="Search" run keywords sleep 1
|
||||||
... AND click element xpath=//*[@id="interceptionadd_pro1"]/div[3]
|
... AND DestinationSearch ${object_name}
|
||||||
... AND sleep 2
|
SourceSearch
|
||||||
... ELSE IF ${objtype1}'=='san' and ${objtype}'=='Fqdn' run keywords click element id=interceptionadd_pro2
|
[Arguments] ${name}
|
||||||
... AND sleep 2
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
... AND click element xpath=//*[@id="interceptionadd_pro2"]/div[2]
|
... ${name}:填入是一个列表,列表内容为source的name
|
||||||
... AND sleep 2
|
... 选择search对象
|
||||||
... ELSE IF ${objtype1}'=='san' and ${objtype}'=='Category' run keywords click element id=interceptionadd_pro2
|
FOR ${i} IN @{name}
|
||||||
... AND sleep 2
|
input text xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[4]/div[2]/div[1]/div[2]/div[2]/div/div[1]/input ${i}
|
||||||
... AND click element xpath=//*[@id="interceptionadd_pro2"]/div[3]
|
sleep 1
|
||||||
... AND sleep 2
|
press keys xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[4]/div[2]/div[1]/div[2]/div[2]/div/div[1]/input ENTER
|
||||||
... ELSE log 对象错误
|
sleep 1
|
||||||
SecurityPolicy.SelectOne ${objname}
|
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[4]/div[2]/div[1]/div[2]/div[2]/div/div[2]/div/div/ul/li[1]
|
||||||
|
sleep 1
|
||||||
Create-Conditions-deny&monitor-dns
|
END
|
||||||
[Arguments] ${objtype} ${objname}
|
DestinationSearch
|
||||||
sleep 2
|
[Arguments] ${name}
|
||||||
run keyword if '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
... AND sleep 2
|
... ${name}:填入是一个列表,列表内容为source的name
|
||||||
... ELSE IF '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
... 选择search对象
|
||||||
... AND sleep 2
|
FOR ${i} IN @{name}
|
||||||
... ELSE log 对象错误
|
input text xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[1]/div[2]/div[2]/div/div[1]/input ${i}
|
||||||
SecurityPolicy.SelectOne ${objname}
|
sleep 1
|
||||||
|
press keys xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[1]/div[2]/div[2]/div/div[1]/input ENTER
|
||||||
Create-Conditions-deny&monitor-mail
|
sleep 1
|
||||||
[Arguments] ${objtype} ${objname}
|
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[1]/div[2]/div[2]/div/div[2]/div/div/ul/li[1]
|
||||||
sleep 2
|
sleep 1
|
||||||
run keyword if '${objtype}'=='Subject' run keywords click element id=interceptionadd_pro0
|
END
|
||||||
... AND sleep 2
|
SUBIDAdd
|
||||||
... ELSE IF '${objtype}'=='Content' run keywords click element id=interceptionadd_pro1
|
[Arguments] ${Add} ${name} ${keywordtext} ${object_name}
|
||||||
... AND sleep 2
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
... ELSE IF '${objtype}'=='ATT Name' run keywords click element id=interceptionadd_pro2
|
... ${Add}:填入Address或Group
|
||||||
... AND sleep 2
|
... ${name}:名称
|
||||||
... ELSE IF '${objtype}'=='ATT CONT' run keywords click element id=interceptionadd_pro3
|
... ${keywordtext}:填入新建subid的内容
|
||||||
... AND sleep 2
|
... ${object_name}:列表形式,列表中是对象的名字
|
||||||
... ELSE IF '${objtype}'=='From' run keywords click element id=interceptionadd_pro4
|
... 判断是新建subid还是新建subid分组
|
||||||
... AND sleep 2
|
run keyword if "${Add}"=="Address" run keywords sleep 1
|
||||||
... ELSE IF '${objtype}'=='To' run keywords click element id=interceptionadd_pro5
|
... AND click element xpath=/html/body/ul/li[1]
|
||||||
... AND sleep 2
|
... AND sleep 1
|
||||||
... ELSE IF '${objtype}'=='Account' run keywords click element id=interceptionadd_pro6
|
... AND SUBAddress ${name} ${keywordtext}
|
||||||
... AND sleep 2
|
... ELSE IF "${Add}"=="Group" run keywords sleep 1
|
||||||
... ELSE log 对象错误
|
... AND click element xpath=/html/body/ul/li[2]
|
||||||
SecurityPolicy.SelectOne ${objname}
|
... AND sleep 1
|
||||||
|
... AND SUBGroupAdd ${name} ${object_name}
|
||||||
Create-Conditions-deny&monitor-ftp
|
SUBAddress
|
||||||
[Arguments] ${objtype} ${objname}
|
[Arguments] ${name} ${keywordtext}
|
||||||
sleep 2
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
run keyword if '${objtype}'=='url' run keywords click element id=interceptionadd_pro0
|
... ${name}:名称
|
||||||
... AND sleep 2
|
... ${keywordtext}:填入新建subid的内容
|
||||||
... ELSE IF '${objtype}'=='content' run keywords click element id=interceptionadd_pro1
|
... 新建subid
|
||||||
... AND sleep 2
|
SourceCreate-name ${name}
|
||||||
... ELSE IF '${objtype}'=='account' run keywords click element id=interceptionadd_pro2
|
click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[3]/div/div[1]/i
|
||||||
... AND sleep 2
|
sleep 1
|
||||||
... ELSE log 对象错误
|
Create-SubscriberID-text ${keywordtext}
|
||||||
SecurityPolicy.SelectOne ${objname}
|
sleep 1
|
||||||
|
|
||||||
SelectOne
|
SUBGroupAdd
|
||||||
[Arguments] ${objname}
|
[Arguments] ${name} ${object_name}
|
||||||
sleep 2
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
log ${objname}
|
... ${name}:名称
|
||||||
input text xpath=//*[@id="condistions_protocol"]/div[2]/div[2]/div/div[1]/input ${objname}
|
... ${object_name}:列表形式,列表中是对象的名字
|
||||||
sleep 1
|
... 新建subid分组
|
||||||
press keys xpath=//*[@id="condistions_protocol"]/div[2]/div[2]/div/div[1]/input ENTER
|
SourceCreate-name ${name}
|
||||||
sleep 2
|
click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[3]/div/div/div[2]
|
||||||
click element xpath=//*[@id="interceptionadd_checkouobject"]/ul/li[1]
|
sleep 1
|
||||||
|
Create-Sub-Objects ${object_name}
|
||||||
|
NewObject.Create-ok
|
||||||
|
SourceIPAdd
|
||||||
|
[Arguments] ${Add} ${ip_type} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
|
... ${Add}:填入Address或Group
|
||||||
|
... ${ip_type}:填入IP或者Geography或者IPLearning
|
||||||
|
... 判断是新建ip还是新建ip分组
|
||||||
|
run keyword if "${Add}"=="Address" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/ul/li[1]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND IPAddress ${name} ${ip_type} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
|
... ELSE IF "${Add}"=="Group" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/ul/li[2]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND IPGroupAdd ${name} ${ip_type} ${object_name}
|
||||||
|
SourceIPAddress
|
||||||
|
[Arguments] ${name} ${ip_type} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
|
... ${name}:名称
|
||||||
|
... ${ip_type}:填入Ip或者Geography或者IPLearning
|
||||||
|
... ${ipclienttext1}:填入IPV4或6的值或range的ip段
|
||||||
|
... ${post}:填入端口
|
||||||
|
... ${Country}:列表形式,列表中是国家名字
|
||||||
|
... ${City}:列表形式,列表中是城市名字
|
||||||
|
... ${Protocols1}:填入HTTP或SSL或HTTPSSL
|
||||||
|
... ${Degree}:填入1Degree或2Degree
|
||||||
|
... ${times}:填入小时数,例如1或2
|
||||||
|
... ${numbers}:填入数值,例如1或10000
|
||||||
|
... ${limits}:填入数值,例如1或10000
|
||||||
|
... 判断 新建选择用什么样的类型,并进行新建
|
||||||
|
SourceCreate-name ${name}
|
||||||
|
sleep 1
|
||||||
|
run keyword if "${ip_type}"=="Ip" run keywords click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[1]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND NewObject.Create-ip-ClientIP-text ${ipclienttext1} ${post}
|
||||||
|
run keyword if "${ip_type}"=="Geography" run keywords click element id=objectAdd_ip1
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[1]/div[2]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND NewObject.Create-Geography ${Country} ${City}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element id=interceptionadd_allcancelobjec3t
|
||||||
|
... AND sleep 1
|
||||||
|
run keyword if "${ip_type}"=="IPLearning" run keywords click element id=objectAdd_ip2
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[1]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[4]/div/div[1]/div[2]/div[1]/div[1]/form/div[1]/div/div[1]/input ${fqdn}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[1]/div/div/div[2]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND Learn-From-Protocols ${Protocols1}
|
||||||
|
... AND Learning-Depth ${Degree}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[3]/div/div[1]/input ${times}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[4]/div/div[1]/input ${numbers}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[5]/div/div[1]/input ${limits}
|
||||||
|
... AND sleep 1
|
||||||
|
SourceCreate-ok
|
||||||
|
|
||||||
|
DestinationIPAdd
|
||||||
|
[Arguments] ${Add} ${ip_type} ${name} ${object_name} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
|
... ${Add}:填入Address或Group
|
||||||
|
... ${ip_type}:填入IP或者Geography或者IPLearning
|
||||||
|
... 判断是新建ip还是新建ip分组
|
||||||
|
run keyword if "${Add}"=="Address" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/ul/li[1]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND DestinationIPAddress ${name} ${ip_type} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
|
... ELSE IF "${Add}"=="Group" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/ul/li[2]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND IPGroupAdd ${name} ${ip_type} ${object_name}
|
||||||
|
DestinationIPAddress
|
||||||
|
[Arguments] ${name} ${ip_type} ${ipclienttext1} ${post} ${Country} ${City} ${Protocols1} ${Degree} ${times} ${numbers} ${limits}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
|
... ${name}:名称
|
||||||
|
... ${ip_type}:填入Ip或者Geography或者IPLearning
|
||||||
|
... ${ipclienttext1}:填入IPV4或6的值或range的ip段
|
||||||
|
... ${post}:填入端口
|
||||||
|
... ${Country}:列表形式,列表中是国家名字
|
||||||
|
... ${City}:列表形式,列表中是城市名字
|
||||||
|
... ${Protocols1}:填入HTTP或SSL或HTTPSSL
|
||||||
|
... ${Degree}:填入1Degree或2Degree
|
||||||
|
... ${times}:填入小时数,例如1或2
|
||||||
|
... ${numbers}:填入数值,例如1或10000
|
||||||
|
... ${limits}:填入数值,例如1或10000
|
||||||
|
... 判断 新建选择用什么样的类型,并进行新建
|
||||||
|
DestinationCreate-name ${name}
|
||||||
|
sleep 1
|
||||||
|
run keyword if "${ip_type}"=="Ip" run keywords click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[1]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND NewObject.Create-ip-ClientIP-text ${ipclienttext1} ${post}
|
||||||
|
run keyword if "${ip_type}"=="Geography" run keywords click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[2]/div/div[1]/div[1]/div[2]/form/div[3]/div/div/label[2]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[1]/div[2]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND NewObject.Create-Geography ${Country} ${City}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element id=interceptionadd_allcancelobjec3t
|
||||||
|
... AND sleep 1
|
||||||
|
run keyword if "${ip_type}"=="IPLearning" run keywords click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[2]/div/div[1]/div[1]/div[2]/form/div[3]/div/div/label[3]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[1]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div[4]/div/div[1]/div[2]/div[1]/div[1]/form/div[1]/div/div[1]/input ${fqdn}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[1]/div/div/div[2]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND Learn-From-Protocols ${Protocols1}
|
||||||
|
... AND Learning-Depth ${Degree}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[3]/div/div[1]/input ${times}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[4]/div/div[1]/input ${numbers}
|
||||||
|
... AND sleep 1
|
||||||
|
... AND input text xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[5]/div/div[1]/input ${limits}
|
||||||
|
... AND sleep 1
|
||||||
|
DestinationCreate-ok
|
||||||
|
Learn-From-Protocols
|
||||||
|
[Arguments] ${Protocols1}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
|
... ${Protocols1}:填入HTTP或SSL或者HTTPSSL
|
||||||
|
... 判断选择用什么样的协议
|
||||||
|
run keyword if "${Protocols1}"=="HTTP" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/div[6]/div[1]/div[1]/ul/li[1]
|
||||||
|
run keyword if "${Protocols1}"=="SSL" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/div[6]/div[1]/div[1]/ul/li[2]
|
||||||
|
run keyword if "${Protocols1}"=="HTTPSSL" run keywords sleep 1
|
||||||
|
... AND click element xpath=/html/body/div[6]/div[1]/div[1]/ul/li[1]
|
||||||
|
... AND sleep 1
|
||||||
|
... AND click element xpath=/html/body/div[6]/div[1]/div[1]/ul/li[2]
|
||||||
|
|
||||||
|
Learning-Depth
|
||||||
|
[Arguments] ${Degree}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
|
... ${Degree}:填入1Degree或2Degree
|
||||||
|
... 判断是用1Degree或2Degree
|
||||||
|
run keyword if "${Degree}"=="1Degree" run keywords sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[2]/div/div/label[1]
|
||||||
|
run keyword if "${Degree}"=="2Degree" run keywords sleep 1
|
||||||
|
... AND click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[5]/div[2]/div/div/label[2]
|
||||||
|
|
||||||
|
IPGroupAdd
|
||||||
|
[Arguments] ${name} ${ip_type} ${object_name}
|
||||||
|
[Documentation] 调用次关键字前需要添加必填参数:
|
||||||
|
... ${name}:名称
|
||||||
|
... ${ip_type}:填入Ip或者Geography
|
||||||
|
... ${object_name}:列表形式,列表中是对象的名字
|
||||||
|
SourceCreate-name ${name}
|
||||||
|
Select-ip_type ${ip_type}
|
||||||
|
sleep 1
|
||||||
|
click element xpath=//*[@id="policy_Manipulation2"]/div[1]/div[1]/div[2]/form/div[4]/div/div/div[2]
|
||||||
|
Create-Sub-Objects ${object_name}
|
||||||
|
NewObject.Create-ok
|
||||||
|
|
||||||
|
SourceCreate-name
|
||||||
|
[Arguments] ${objName}
|
||||||
|
sleep 2
|
||||||
|
input text id=objectAdd_name ${objName}
|
||||||
|
|
||||||
|
SourceCreate-ok
|
||||||
|
sleep 2
|
||||||
|
click button id=objectAdd_ok
|
||||||
|
|
||||||
|
DestinationCreate-name
|
||||||
|
[Arguments] ${objName}
|
||||||
|
sleep 2
|
||||||
|
input text xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[2]/div/div[1]/div[1]/div[2]/form/div[1]/div/div[1]/input ${objName}
|
||||||
|
|
||||||
|
DestinationCreate-ok
|
||||||
|
sleep 2
|
||||||
|
click button xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[2]/div[2]/div/div[2]/button[1]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Create-Conditions
|
||||||
|
sleep 2
|
||||||
|
click element id=interceptionadd_object
|
||||||
|
|
||||||
|
Create-Conditions-ip
|
||||||
|
[Arguments] ${objname}
|
||||||
|
sleep 2
|
||||||
|
click element id=interceptionadd_procolall1
|
||||||
|
sleep 2
|
||||||
|
SecurityPolicy.SelectOne ${objname}
|
||||||
|
|
||||||
|
Create-Conditions-sub
|
||||||
|
[Arguments] ${objname}
|
||||||
|
sleep 2
|
||||||
|
click element id=interceptionadd_procolall2
|
||||||
|
sleep 2
|
||||||
|
SecurityPolicy.SelectOne ${objname}
|
||||||
|
|
||||||
|
Create-Conditions-protocol
|
||||||
|
[Arguments] ${protocol}
|
||||||
|
sleep 2
|
||||||
|
click element id=interceptionadd_procolall3
|
||||||
|
sleep 2
|
||||||
|
run keyword if '${protocol}'=='http' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange0
|
||||||
|
... ELSE IF '${protocol}'=='ssl' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange1
|
||||||
|
... ELSE IF '${protocol}'=='dns' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange2
|
||||||
|
... ELSE IF '${protocol}'=='mail' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange3
|
||||||
|
... ELSE IF '${protocol}'=='ftp' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange4
|
||||||
|
... ELSE log 协议内容错误
|
||||||
|
|
||||||
|
Create-Conditions-Search
|
||||||
|
[Arguments] ${Search}
|
||||||
|
input text xpath=//*[@id="proxy"]/div[5]/div[2]/div[2]/div/div[1]/input ${Search}
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
Create-Conditions-Close
|
||||||
|
click button id=interceptionadd_allcancelobject
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
Create-Tag
|
||||||
|
|
||||||
|
Create-EffectiveDevices
|
||||||
|
|
||||||
|
Create-Schedule
|
||||||
|
|
||||||
|
Create-Log Session
|
||||||
|
|
||||||
|
Create-Description
|
||||||
|
|
||||||
|
Create-Enabled
|
||||||
|
[Arguments] ${state}
|
||||||
|
sleep 2
|
||||||
|
run keyword if "${state}"=="open" run keywords click element id=enablencheck_swith
|
||||||
|
... AND sleep 2
|
||||||
|
... AND click button id=interceptionadd-enable-confirm
|
||||||
|
|
||||||
|
Create-ok
|
||||||
|
execute javascript document.documentElement.scrollTop=1000
|
||||||
|
sleep 2
|
||||||
|
click button id=interceptionadd_sub
|
||||||
|
sleep 1
|
||||||
|
execute javascript document.documentElement.scrollTop=0
|
||||||
|
|
||||||
|
Create-cancel
|
||||||
|
click button id=interceptionadd_back
|
||||||
|
|
||||||
|
Create-Conditions-obj
|
||||||
|
[Arguments] ${action} ${protocol} ${objtype} ${objname} ${objtype1}=null
|
||||||
|
run keyword if '${action}'=='allow' and '${protocol}'=='http' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange0
|
||||||
|
... AND Create-Conditions-allow&intercept-http ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='intercept' and '${protocol}'=='http' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange0
|
||||||
|
... AND Create-Conditions-allow&intercept-http ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='allow' and '${protocol}'=='ssl' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange1
|
||||||
|
... AND Create-Conditions-allow&intercept-ssl ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='intercept' and '${protocol}'=='ssl' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange1
|
||||||
|
... AND Create-Conditions-allow&intercept-ssl ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='deny' and '${protocol}'=='http' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange0
|
||||||
|
... AND Create-Conditions-deny&monitor-http ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='monitor' and '${protocol}'=='http' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange0
|
||||||
|
... AND Create-Conditions-deny&monitor-http ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='deny' and '${protocol}'=='ssl' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange1
|
||||||
|
... AND Create-Conditions-deny&monitor-ssl ${objtype1} ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='monitor' and '${protocol}'=='ssl' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange1
|
||||||
|
... AND Create-Conditions-deny&monitor-ssl ${objtype1} ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='deny' and '${protocol}'=='dns' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange2
|
||||||
|
... AND Create-Conditions-deny&monitor-dns ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='monitor' and '${protocol}'=='dns' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange2
|
||||||
|
... AND Create-Conditions-deny&monitor-dns ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='deny' and '${protocol}'=='mail' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange3
|
||||||
|
... AND Create-Conditions-deny&monitor-mail ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='monitor' and '${protocol}'=='mail' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange3
|
||||||
|
... AND Create-Conditions-deny&monitor-mail ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='deny' and '${protocol}'=='ftp' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange4
|
||||||
|
... AND Create-Conditions-deny&monitor-ftp ${objtype} ${objname}
|
||||||
|
... ELSE IF '${action}'=='monitor' and '${protocol}'=='ftp' run keywords sleep 1
|
||||||
|
... AND click element id=interceptionadd_prochange4
|
||||||
|
... AND Create-Conditions-deny&monitor-ftp ${objtype} ${objname}
|
||||||
|
... ELSE log 对象错误
|
||||||
|
|
||||||
|
Create-Conditions-allow&intercept-http
|
||||||
|
[Arguments] ${objtype} ${objname}
|
||||||
|
sleep 2
|
||||||
|
run keyword if '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE log 对象错误
|
||||||
|
SecurityPolicy.SelectOne ${objname}
|
||||||
|
|
||||||
|
Create-Conditions-allow&intercept-ssl
|
||||||
|
[Arguments] ${objtype} ${objname}
|
||||||
|
sleep 2
|
||||||
|
run keyword if '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE log 对象错误
|
||||||
|
SecurityPolicy.SelectOne ${objname}
|
||||||
|
|
||||||
|
Create-Conditions-deny&monitor-http
|
||||||
|
[Arguments] ${objtype} ${objname}
|
||||||
|
sleep 2
|
||||||
|
run keyword if '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Url' run keywords click element id=interceptionadd_pro1
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Reqhdr' run keywords click element id=interceptionadd_pro2
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Reshdr' run keywords click element id=interceptionadd_pro3
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Reqbody' run keywords click element id=interceptionadd_pro4
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Resbody' run keywords click element id=interceptionadd_pro5
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE log 对象错误
|
||||||
|
SecurityPolicy.SelectOne ${objname}
|
||||||
|
|
||||||
|
Create-Conditions-deny&monitor-ssl
|
||||||
|
[Arguments] ${objtype1} ${objtype} ${objname}
|
||||||
|
sleep 2
|
||||||
|
run keyword if '${objtype1}'=='sni' and '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype1}'=='sni' and '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF ${objtype1}'=='cn' and ${objtype}'=='Fqdn' run keywords click element id=interceptionadd_pro1
|
||||||
|
... AND sleep 2
|
||||||
|
... AND click element xpath=//*[@id="interceptionadd_pro1"]/div[2]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF ${objtype1}'=='cn' and${objtype}'=='Category' run keywords click element id=interceptionadd_pro1
|
||||||
|
... AND sleep 2
|
||||||
|
... AND click element xpath=//*[@id="interceptionadd_pro1"]/div[3]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF ${objtype1}'=='san' and ${objtype}'=='Fqdn' run keywords click element id=interceptionadd_pro2
|
||||||
|
... AND sleep 2
|
||||||
|
... AND click element xpath=//*[@id="interceptionadd_pro2"]/div[2]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF ${objtype1}'=='san' and ${objtype}'=='Category' run keywords click element id=interceptionadd_pro2
|
||||||
|
... AND sleep 2
|
||||||
|
... AND click element xpath=//*[@id="interceptionadd_pro2"]/div[3]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE log 对象错误
|
||||||
|
SecurityPolicy.SelectOne ${objname}
|
||||||
|
|
||||||
|
Create-Conditions-deny&monitor-dns
|
||||||
|
[Arguments] ${objtype} ${objname}
|
||||||
|
sleep 2
|
||||||
|
run keyword if '${objtype}'=='Fqdn' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[2]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Category' run keywords click element xpath=//*[@id="interceptionadd_pro0"]/div[3]
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE log 对象错误
|
||||||
|
SecurityPolicy.SelectOne ${objname}
|
||||||
|
|
||||||
|
Create-Conditions-deny&monitor-mail
|
||||||
|
[Arguments] ${objtype} ${objname}
|
||||||
|
sleep 2
|
||||||
|
run keyword if '${objtype}'=='Subject' run keywords click element id=interceptionadd_pro0
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Content' run keywords click element id=interceptionadd_pro1
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='ATT Name' run keywords click element id=interceptionadd_pro2
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='ATT CONT' run keywords click element id=interceptionadd_pro3
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='From' run keywords click element id=interceptionadd_pro4
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='To' run keywords click element id=interceptionadd_pro5
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='Account' run keywords click element id=interceptionadd_pro6
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE log 对象错误
|
||||||
|
SecurityPolicy.SelectOne ${objname}
|
||||||
|
|
||||||
|
Create-Conditions-deny&monitor-ftp
|
||||||
|
[Arguments] ${objtype} ${objname}
|
||||||
|
sleep 2
|
||||||
|
run keyword if '${objtype}'=='url' run keywords click element id=interceptionadd_pro0
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='content' run keywords click element id=interceptionadd_pro1
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE IF '${objtype}'=='account' run keywords click element id=interceptionadd_pro2
|
||||||
|
... AND sleep 2
|
||||||
|
... ELSE log 对象错误
|
||||||
|
SecurityPolicy.SelectOne ${objname}
|
||||||
|
|
||||||
|
SelectOne
|
||||||
|
[Arguments] ${objname}
|
||||||
|
sleep 2
|
||||||
|
log ${objname}
|
||||||
|
input text xpath=//*[@id="condistions_protocol"]/div[2]/div[2]/div/div[1]/input ${objname}
|
||||||
|
sleep 1
|
||||||
|
press keys xpath=//*[@id="condistions_protocol"]/div[2]/div[2]/div/div[1]/input ENTER
|
||||||
|
sleep 2
|
||||||
|
click element xpath=//*[@id="interceptionadd_checkouobject"]/ul/li[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user