提交修改settings模块关键字

This commit is contained in:
lyf
2020-12-23 14:47:11 +08:00
parent 2845968f24
commit e0b43c1d8c
6 changed files with 39 additions and 38 deletions

View File

@@ -513,7 +513,7 @@ Edit-Insert Scripts
click id=profilesTabs_Profile_Insert #点击Insert files按钮
Settings-Search ${id-name} ${search} #搜索框的关键字
sleep 1
click xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
sleep 1
click id=insertEdit #点击Edit
sleep 1
@@ -588,7 +588,7 @@ Edit-Response Pages
sleep 1
click id=responseAddOk1
Sleep 1
Settings-Search ${id-name} ${search} #搜索框的关键字
Settings-Search ${name1} ${search} #搜索框的关键字
Sleep 1
${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${name1} #断言
@@ -618,7 +618,7 @@ Edit-Hijack Files
sleep 1
input id=hijack_profileName ${name1} #输入框输入
sleep 1
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div/div[1]/input ${file} #上传文件
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[5]/div/div/div[1]/input ${file} #上传文件
sleep 1
${dow_name} Set Variable ${shift}
${input} Set Variable ${input1}
@@ -633,7 +633,7 @@ Edit-Hijack Files
click id=rigth-menu-button-close #关闭侧滑框
sleep 1
click id=hijackAddOk1 #点击ok提交
Settings-Search ${id-name} ${search} #搜索框的关键字
Settings-Search ${name1} ${search} #搜索框的关键字
${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/span #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${name1} #断言
@@ -653,7 +653,7 @@ Edit-Traffic Mirror Profiles
sleep 1
Settings-Search ${id-name} ${search} #搜索框的关键字
sleep 1
click xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
sleep 1
click id=trafficMirrorEdit #点击Edit
sleep 1
@@ -669,9 +669,9 @@ Edit-Traffic Mirror Profiles
sleep 1
input id=trafficmirror_addrArray0 ${shuju} #输入内容
sleep 1
click xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[2]/button[1] #点击ok
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击ok
Sleep 2
Settings-Search ${id-name} ${search} #搜索框的关键字
Settings-Search ${name1} ${search} #搜索框的关键字
Sleep 1
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${name1} #断言
@@ -1562,23 +1562,23 @@ Create_Ip_Libraries
Should Be Equal As Strings ${GeoNameText} ${GeoNameID} #断言
Edit_Ip_Libraries
[Arguments] ${type} ${GeoNameID} ${City}=null ${ip}=null ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null ${type}=null ${type1}=null
[Arguments] ${type} ${GeoNameID} ${City}=null ${ip}=null ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null ${type1}=null ${type2}=null
click id=tagEdit #点击Edit按钮
sleep 2
run keyword if "${City}"!="null" input id=ip_geography_City ${City}
sleep 1
run keyword if "${type}"=="edit" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[2]/form/div[3]/div/div[2]/div[2]/ul/li/div[2]/i[1]
run keyword if "${type1}"=="edit" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[2]/form/div[3]/div/div[2]/div[2]/ul/li/div[2]/i[1]
... AND sleep 1
... AND clear element text xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[2]/form/div[3]/div/div[2]/div[2]/ul/li/div[1]/form/div/div/div
... AND sleep 1
... AND input id=ip_input0 ${ip}[0]
... AND sleep 1
run keyword if "${type}"=="create" Ip_Range_Edit_Create ${j} ${ip}
run keyword if "${type1}"=="create" Ip_Range_Edit_Create ${j} ${ip}
sleep 1
run keyword if "${type}"=="delete" and "${type1}"=="create" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[2]/form/div[3]/div/div[2]/div[2]/ul/li/div[2]/i[2]
run keyword if "${type1}"=="delete" and "${type2}"=="create" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[1]/div[2]/form/div[3]/div/div[2]/div[2]/ul/li/div[2]/i[2]
... AND sleep 1
... AND Ip_Range_Edit_Create ${j} ${ip}
run keyword if "${type}"=="null" log 不做更改
run keyword if "${type1}"=="null" log 不做更改
run keyword if "${Longitude}"!="null" Run Keywords input id=ip_geography_longitude ${Longitude}
... AND sleep 1
run keyword if "${Latitude}"!="null" Run Keywords input id=ip_geography_latitude ${Latitude}
@@ -1651,6 +1651,7 @@ Switch_IP_Libraries
sleep 1
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/i
sleep 1
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]
sleep 1
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div
sleep 2