1、提交settings-Proxy TCP Options关键字代码,2、修改对象关键字

This commit is contained in:
lyf
2020-12-11 18:17:15 +08:00
parent 46edbe525e
commit 9342c4cf76
7 changed files with 268 additions and 51 deletions

View File

@@ -15,9 +15,9 @@ CreateButton
CreateButton-groupadd
[Arguments] ${buildType}
run keyword if "${buildType}"=="singletype" run keywords sleep 2
... AND Click element xpath=//*[@id="objectaddress"]
... AND Click element id=objectaddress
... ELSE IF "${buildType}"=="grouptype" run keywords sleep 2
... AND Click element xpath=//*[@id="objectaddress_group"]
... AND Click element id=objectaddress_group
... ELSE IF log 对象类型有误
SelectObj
[Arguments] ${objectform}
@@ -56,7 +56,7 @@ Create-item
# 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[1]/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[1]
... AND sleep 1
... AND Create-ip-ClientIP-text ${ipclienttext1} ${post}
run keyword if "${objectform}"=="IP" and "${ip_type}"=="Geography" run keywords click element id=objectAdd_ip1
@@ -68,7 +68,7 @@ Create-item
... AND sleep 1
... AND click element id=interceptionadd_allcancelobject
... AND sleep 1
run keyword if "${objectform}"=="FQDN" or "${objectform}"=="URL" or "${objectform}"=="Category" or "${objectform}"=="Account" run keywords click element id=objectAddItemAdd
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 Create-keyword-text ${objectform} ${keywordtext}
... AND sleep 1
@@ -177,9 +177,11 @@ Create-ip-ClientIP
Create-ip-ClientIP-text
[Arguments] ${clientIPStart} ${port}=null
sleep 2
run keywords input text id=temporary_ip0 ${clientIPStart}
... AND input text id=temporary_port0 ${port}
... AND click element id=objectAdd_description
input text id=temporary_ip0 ${clientIPStart}
sleep 2
input text id=temporary_port0 ${port}
sleep 1
#click element id=objectAdd_description
Create-ip-ClientPort
@@ -299,7 +301,7 @@ Create-keyword-text
run keyword if "${type}"=="FQDN" run keywords sleep 1
... AND input text id=object_fqdn0 ${keywordtext}
... ELSE IF "${type}"=="URL" run keywords sleep 1
... AND input text id=object_url0 ${keywordtext}
... AND input text id=object_url00 ${keywordtext}
... ELSE IF "${type}"=="Category" run keywords sleep 1
... AND input text id=object_fqdn0 ${keywordtext}
... ELSE IF "${type}"=="Account" run keywords sleep 1
@@ -454,18 +456,17 @@ object-edit-keywords
ui-object-search-name
[Arguments] ${name}
sleep 2
click element id=one-input
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[1]/span/div/div/div[2]/div/div/div/input #点击输入框
sleep 2
click element id=input_list_li2
click element xpath=/html/body/div/div[1]/div[1]/ul/li[3] #点击name为搜索类型
sleep 2
input text id=sreach_input ${name}
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${name} #输入搜索内容
sleep 2
click element id=select_new_search_btn
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[1]/span/div/i #点击搜索按钮
sleep 2
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] #选择搜索到的列表
sleep 2
click element id=clear_input_btm
sleep 1
object-edit-HTTPSignature
[Arguments] ${name} ${reqrestype} ${reqresheader} ${keywordtext} ${hex}=close