1、提交settings中的Advanced的用例和关键字,2、提交Administration模块的用例和关键字
This commit is contained in:
@@ -1143,11 +1143,13 @@ Req_Res_Body
|
||||
\ ... AND input id=attributeValue_string ${dict}[${key}]
|
||||
|
||||
Create_Ip_Libraries
|
||||
[Arguments] ${type} ${Continent/Country} ${GeoNameID} ${City} ${ip} ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null
|
||||
[Arguments] ${type1} ${type} ${Continent/Country} ${GeoNameID} ${City} ${ip} ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null
|
||||
Sleep 1
|
||||
click id=children5 #点击一级目录Settings
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarIP_Libraries #点击二级目录IP_Libraries
|
||||
click id=sidebarAdvanced
|
||||
sleep 1
|
||||
click id=Advanced/ipLibrary #点击二级目录IP_Libraries
|
||||
Sleep 2
|
||||
click id=tagAdd #点击Create按钮
|
||||
sleep 2
|
||||
@@ -1179,13 +1181,13 @@ Create_Ip_Libraries
|
||||
click id=IP_library_add
|
||||
sleep 2
|
||||
#验证新建是否成功
|
||||
Switch_GeoName ${GeoNameID}
|
||||
Switch_IP_Libraries ${type1} ${GeoNameID} ${GeoNameID}
|
||||
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
sleep 2
|
||||
Should Be Equal As Strings ${GeoNameText} ${GeoNameID} #断言
|
||||
|
||||
Edit_Ip_Libraries
|
||||
[Arguments] ${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 ${type}=null ${type1}=null
|
||||
click id=tagEdit #点击Edit按钮
|
||||
sleep 2
|
||||
run keyword if "${City}"!="null" input id=ip_geography_City ${City}
|
||||
@@ -1209,7 +1211,7 @@ Edit_Ip_Libraries
|
||||
click id=IP_library_add
|
||||
sleep 2
|
||||
#验证修改是否成功
|
||||
Switch_GeoName ${GeoNameID}
|
||||
Switch_IP_Libraries ${type} ${GeoNameID} ${GeoNameID}
|
||||
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
sleep 2
|
||||
Should Be Equal As Strings ${GeoNameText} ${GeoNameID} #断言
|
||||
@@ -1222,7 +1224,7 @@ Switch_Geographic_Locations
|
||||
sleep 2
|
||||
click xpath=//*[@id="right_locationList"]/div[2]/div[1]/div[2]/div/div
|
||||
sleep 1
|
||||
click id=interceptionadd_allcancelobject
|
||||
click id=interceptionadd_allcancelobject9
|
||||
sleep 1
|
||||
Ip_Range_Create
|
||||
[Arguments] ${j} ${ip}
|
||||
@@ -1243,80 +1245,43 @@ Ip_Range_Edit_Create
|
||||
\ input id=ip_input${i} ${ip}[${i}]
|
||||
\ sleep 1
|
||||
sleep 1
|
||||
Switch_GeoName
|
||||
[Arguments] ${GeoName}
|
||||
sleep 2
|
||||
click id=clear_input_btm
|
||||
sleep 1
|
||||
input id=one-input ${GeoName}
|
||||
sleep 1
|
||||
click id=select_new_search_btn
|
||||
sleep 1
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
sleep 1
|
||||
|
||||
Delete_IP_Libraries
|
||||
[Arguments] ${GeoName}
|
||||
Switch_GeoName ${GeoName}
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]
|
||||
sleep 2
|
||||
click id=tagDel
|
||||
sleep 2
|
||||
click xpath=/html/body/div/div/div[3]/button[2]
|
||||
sleep 2
|
||||
Switch_GeoName1
|
||||
[Arguments] ${GeoName}
|
||||
Switch_IP_Libraries
|
||||
[Arguments] ${type} ${value} ${GeoName}
|
||||
sleep 2
|
||||
click id=clear_input_btm
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div/div/input
|
||||
sleep 2
|
||||
run keyword if "${type}"=="Geo Name" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
|
||||
... AND sleep 1
|
||||
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
run keyword if "${type}"=="Country and Region" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
|
||||
... AND sleep 1
|
||||
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
run keyword if "${type}"=="City" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[4]
|
||||
... AND sleep 1
|
||||
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
run keyword if "${type}"=="Operator" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[5]
|
||||
... AND sleep 1
|
||||
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
... AND sleep 1
|
||||
... AND click xpath=/html/body/div[2]/div[1]/div[1]/ul/li[1]
|
||||
sleep 1
|
||||
click id=one-input
|
||||
sleep 1
|
||||
click id=input_list_li1
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/i
|
||||
sleep 1
|
||||
input id=sreach_input ${GeoName}
|
||||
sleep 1
|
||||
click id=select_new_search_btn
|
||||
sleep 1
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
sleep 1
|
||||
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div
|
||||
sleep 2
|
||||
Should Be Equal As Strings ${GeoNameText} ${GeoName} #断言
|
||||
|
||||
Switch_Country
|
||||
[Arguments] ${Country}
|
||||
sleep 2
|
||||
click id=clear_input_btm
|
||||
sleep 1
|
||||
click id=one-input
|
||||
sleep 1
|
||||
click id=input_list_li2
|
||||
sleep 1
|
||||
input id=sreach_input ${Country}
|
||||
sleep 1
|
||||
click id=select_new_search_btn
|
||||
sleep 1
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
sleep 1
|
||||
${CountryText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div/div
|
||||
sleep 2
|
||||
Should Match ${CountryText} ${Country} #断言
|
||||
Switch_City
|
||||
[Arguments] ${City}
|
||||
sleep 2
|
||||
click id=clear_input_btm
|
||||
sleep 1
|
||||
click id=one-input
|
||||
sleep 1
|
||||
click id=input_list_li3
|
||||
sleep 1
|
||||
input id=sreach_input ${City}
|
||||
sleep 1
|
||||
click id=select_new_search_btn
|
||||
sleep 1
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
sleep 1
|
||||
${CCityText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div/div
|
||||
sleep 2
|
||||
Should Match ${CityText} ${City} #断言
|
||||
|
||||
Pages
|
||||
[Arguments]
|
||||
Sleep 1
|
||||
|
||||
Reference in New Issue
Block a user