1、修改settings模块的用例和关键字的代码2、提交ui登录清除缓存提示弹出框代码3、提交密码到期修改密码弹出框代码
This commit is contained in:
@@ -19,10 +19,26 @@ ui-login
|
||||
input xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input 111111
|
||||
click xpath=//*[@id="app"]/div/div[2]/div/div[4]/button
|
||||
|
||||
Settings-Search
|
||||
[Arguments] ${name} ${search}
|
||||
Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div/div[1]/input 20
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div/div[1]/input #点击搜索框
|
||||
sleep 1
|
||||
#判断是使用name搜索还是id搜索
|
||||
run keyword if "${search}"=="name" run keywords sleep 1
|
||||
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
|
||||
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${name}
|
||||
... ELSE IF "${search}"=="id" run keywords sleep 1
|
||||
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
|
||||
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${name}
|
||||
sleep 1
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/i #点击搜索按钮
|
||||
sleep 1
|
||||
|
||||
Create-Hijack Files
|
||||
[Arguments] ${name} ${file} ${type} ${shift}=1 ${input1}=1
|
||||
[Arguments] ${name} ${file} ${type} ${search} ${shift}=1 ${input1}=1
|
||||
Sleep 1
|
||||
click id=children5 #点击一级目录Settings
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||
Sleep 2
|
||||
@@ -32,7 +48,7 @@ Create-Hijack Files
|
||||
Sleep 2
|
||||
input id=hijack_profileName ${name} #输入name
|
||||
Sleep 2
|
||||
Choose File xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/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[2]/div/div/div[1]/input ${file} #上传文件
|
||||
Sleep 2
|
||||
${dow_name} Set Variable ${shift}
|
||||
${input} Set Variable ${input1}
|
||||
@@ -45,18 +61,14 @@ Create-Hijack Files
|
||||
click ${type} #选择文件类型
|
||||
sleep 2
|
||||
click id=hijackAddOk1 #点击OK
|
||||
Wait Until Element Is Visible id=one-input 20
|
||||
input id=one-input ${name} #搜索输入框输入name
|
||||
Sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
Sleep 1
|
||||
Settings-Search ${name} ${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} ${name} #断言
|
||||
|
||||
Create-Insert Scripts
|
||||
[Arguments] ${name} ${file} ${type}
|
||||
[Arguments] ${name} ${file} ${type} ${search}
|
||||
Sleep 1
|
||||
click id=children5 #点击一级目录Settings
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||
Sleep 2
|
||||
@@ -74,17 +86,17 @@ Create-Insert Scripts
|
||||
sleep 1
|
||||
click id=insertAddOk1 #点击OK
|
||||
Sleep 1
|
||||
input id=one-input ${name} #搜索输入框输入name
|
||||
Settings-Search ${name} ${search} #搜索框的关键字
|
||||
log psssssssssssssssssssssssssss
|
||||
Sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
Sleep 1
|
||||
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
|
||||
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||||
#//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span #获取点击后页面文本信息
|
||||
Should Be Equal As Strings ${text1} ${name} #断言
|
||||
|
||||
Create-Traffic Mirror Profiles
|
||||
[Arguments] ${name} ${type} ${shuru}
|
||||
[Arguments] ${name} ${type} ${shuru} ${search}
|
||||
Sleep 1
|
||||
click id=children5 #点击一级目录Settings
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||
Sleep 2
|
||||
@@ -100,21 +112,19 @@ Create-Traffic Mirror Profiles
|
||||
Sleep 1
|
||||
input id=trafficmirror_addrArray0 ${shuru}
|
||||
sleep 2
|
||||
click xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/button[1] #点击OK
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击OK
|
||||
Sleep 2
|
||||
input id=one-input ${name} #搜索输入框输入name
|
||||
Settings-Search ${name} ${search} #搜索框的关键字
|
||||
Sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
Sleep 1
|
||||
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span #获取点击后页面文本信息
|
||||
${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} ${name} #断言
|
||||
|
||||
Edit-Insert Scripts
|
||||
[Arguments] ${id-name} ${name} ${name1} ${file} ${type}
|
||||
[Arguments] ${id-name} ${name1} ${file} ${type} ${search}
|
||||
[Documentation] 引用关键字,填入必填参数
|
||||
... 必填参数:
|
||||
... ${id-name}:为选择要查询的类型是ID或者Name的元素
|
||||
... ${name}:为查询输入框输入内容
|
||||
... ${search}:为选择要查询的类型是ID或者Name的元素
|
||||
... ${id-name}:为查询输入框输入内容
|
||||
... ${name1}:为修改页面的name输入框里输入的内容
|
||||
... ${file}:为修改页面要上传文件的路径
|
||||
... ${type}:选择文件类型的元素
|
||||
@@ -122,14 +132,7 @@ Edit-Insert Scripts
|
||||
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||
sleep 2
|
||||
click id=profilesTabs_Profile_Insert #点击Insert files按钮
|
||||
sleep 1
|
||||
click id=one-input #搜索点击输入框
|
||||
sleep 1
|
||||
click ${id-name} #选择ID或者name
|
||||
sleep 1
|
||||
input id=sreach_input ${name} #输入搜索内容
|
||||
sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
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] #点击搜素到的列表
|
||||
sleep 1
|
||||
@@ -148,7 +151,7 @@ Edit-Insert Scripts
|
||||
click id=insertAddOk1 #点击ok提交
|
||||
|
||||
Create-Response Pages
|
||||
[Arguments] ${name} ${file}
|
||||
[Arguments] ${name} ${file} ${search}
|
||||
[Documentation] 引用次关键字,填入必填参数
|
||||
... 必填参数:
|
||||
... ${name}:新建页面name输入框里的内容
|
||||
@@ -156,7 +159,7 @@ Create-Response Pages
|
||||
#打开浏览器
|
||||
#ui-login lyf 111111
|
||||
Sleep 1
|
||||
click id=children5 #点击一级目录Settings
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||
Sleep 2
|
||||
@@ -167,30 +170,24 @@ Create-Response Pages
|
||||
Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件
|
||||
Sleep 2
|
||||
click id=responseAddOk1 #点击OK缇交
|
||||
Sleep 1
|
||||
input id=one-input ${name} #搜索框输入
|
||||
Sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
Sleep 2
|
||||
Settings-Search ${name} ${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} ${name} #断言
|
||||
|
||||
Edit-Response Pages
|
||||
[Arguments] ${id-name} ${name} ${name1} ${file}
|
||||
[Arguments] ${id-name} ${name1} ${file} ${search}
|
||||
[Documentation] 引用关键字,填入必填参数
|
||||
... 必填参数:
|
||||
... ${id-name}:为选择要查询的类型是ID或者Name的元素
|
||||
... ${name}:为查询输入框输入内容
|
||||
... ${search}:为选择要查询的类型是ID或者Name
|
||||
... ${id-name}:为查询输入框输入内容
|
||||
... ${name1}:为修改页面的name输入框里输入的内容
|
||||
... ${file}:为修改页面要上传文件的路径
|
||||
sleep 1
|
||||
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||
Sleep 2
|
||||
click id=one-input #搜索点击输入框
|
||||
Sleep 1
|
||||
click ${id-name} #选择ID或者name
|
||||
Sleep 1
|
||||
input id=sreach_input ${name}
|
||||
Settings-Search ${id-name} ${search} #搜索框的关键字
|
||||
Sleep 1
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
|
||||
sleep 1
|
||||
@@ -204,20 +201,18 @@ Edit-Response Pages
|
||||
sleep 1
|
||||
click id=responseAddOk1
|
||||
Sleep 1
|
||||
input id=one-input ${name1} #搜索框输入
|
||||
Sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
Settings-Search ${id-name} ${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} #断言
|
||||
|
||||
Edit-Hijack Files
|
||||
[Arguments] ${id-name} ${name} ${name1} ${file} ${type} ${shift}=1
|
||||
[Arguments] ${id-name} ${name1} ${file} ${type} ${search} ${shift}=1
|
||||
... ${input1}=1
|
||||
[Documentation] 引用关键字,填入必填参数
|
||||
... 必填参数:
|
||||
... ${id-name}:为选择要查询的类型是ID或者Name的元素
|
||||
... ${name}:为查询输入框输入内容
|
||||
... ${search}:为选择要查询的类型是ID或者Name的元素
|
||||
... ${id-name}:为查询输入框输入内容
|
||||
... ${name1}:为修改页面的name输入框里输入的内容
|
||||
... ${file}:为修改页面要上传文件的路径
|
||||
... ${type}:为文件类型的元素
|
||||
@@ -226,13 +221,7 @@ Edit-Hijack Files
|
||||
Sleep 2
|
||||
click id=profilesTabs_Profile_HijackFiles #点击Hijack files按钮
|
||||
sleep 1
|
||||
click id=one-input #搜索点击输入框
|
||||
sleep 1
|
||||
click ${id-name} #选择ID或者name
|
||||
sleep 1
|
||||
input id=sreach_input ${name} #输入搜索内容
|
||||
sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
Settings-Search ${id-name} ${search} #搜索框的关键字
|
||||
sleep 1
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
|
||||
sleep 1
|
||||
@@ -242,7 +231,7 @@ Edit-Hijack Files
|
||||
sleep 1
|
||||
input id=hijack_profileName ${name1} #输入框输入
|
||||
sleep 1
|
||||
Choose File xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[1]/div[2]/form/div[5]/div/div/div[1]/input ${file} #上传文件
|
||||
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} #上传文件
|
||||
sleep 1
|
||||
${dow_name} Set Variable ${shift}
|
||||
${input} Set Variable ${input1}
|
||||
@@ -257,20 +246,16 @@ Edit-Hijack Files
|
||||
click id=rigth-menu-button-close #关闭侧滑框
|
||||
sleep 1
|
||||
click id=hijackAddOk1 #点击ok提交
|
||||
Wait Until Element Is Visible id=one-input 20
|
||||
input id=one-input ${name1} #搜索输入框输入name
|
||||
Sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
Sleep 1
|
||||
Settings-Search ${id-name} ${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} #断言
|
||||
|
||||
Edit-Traffic Mirror Profiles
|
||||
[Arguments] ${id-name} ${name} ${name1} ${type} ${shuju}
|
||||
[Arguments] ${id-name} ${name1} ${type} ${shuju} ${search}
|
||||
[Documentation] 引用关键字,填入必填参数
|
||||
... 必填参数:
|
||||
... ${id-name}:为选择要查询的类型是ID或者Name的元素
|
||||
... ${name}:为查询输入框输入内容
|
||||
... ${search}:为选择要查询的类型是ID或者Name的元素
|
||||
... ${id-name}:为查询输入框输入内容
|
||||
... ${name1}:为修改页面的name输入框里输入的内容
|
||||
... ${type}:为选择点击vlan或mac的元素
|
||||
... ${shuju}:为输入框输入内容
|
||||
@@ -279,13 +264,7 @@ Edit-Traffic Mirror Profiles
|
||||
Sleep 2
|
||||
click id=profilesTabs_Profile_TrafficMirrorProfiles #点击Traffic Mirror Profiles按钮
|
||||
sleep 1
|
||||
click id=one-input #搜索点击输入框
|
||||
sleep 1
|
||||
click ${id-name} #选择ID或者name
|
||||
sleep 1
|
||||
input id=sreach_input ${name} #输入搜索内容
|
||||
sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
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] #点击搜素到的列表
|
||||
sleep 1
|
||||
@@ -305,11 +284,9 @@ Edit-Traffic Mirror Profiles
|
||||
sleep 1
|
||||
click xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[2]/button[1] #点击ok
|
||||
Sleep 2
|
||||
input id=one-input ${name1} #搜索输入框输入name
|
||||
Settings-Search ${id-name} ${search} #搜索框的关键字
|
||||
Sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
Sleep 1
|
||||
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span #获取点击后页面文本信息
|
||||
${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} #断言
|
||||
|
||||
import-Trusted Certificate Authorities
|
||||
@@ -717,9 +694,9 @@ Min_max_version
|
||||
... ELSE log 错误
|
||||
|
||||
Create-Decryption_Profile
|
||||
[Arguments] ${name} ${dict1}=null ${fail1}=null ${min1}=null ${max1}=null
|
||||
[Arguments] ${name} ${search} ${dict1}=null ${fail1}=null ${min1}=null ${max1}=null
|
||||
Sleep 1
|
||||
click id=children5 #点击一级目录Settings
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||
sleep 2
|
||||
@@ -783,15 +760,9 @@ Create-Decryption_Profile
|
||||
sleep 2
|
||||
click id=decryption-ok
|
||||
sleep 2
|
||||
click id=one-input #点击搜索框
|
||||
Settings-Search ${name} ${search} #搜索框的关键字
|
||||
sleep 2
|
||||
click id=input_list_li2 #选择搜索类型-name
|
||||
sleep 1
|
||||
input id=sreach_input ${name} #输入内容
|
||||
sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
sleep 2
|
||||
${name1} get text xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||||
${name1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||
Should Be Equal As Strings ${name1} ${name}
|
||||
|
||||
|
||||
@@ -810,21 +781,15 @@ Button_Switch
|
||||
\ run keyword if "${class}"=="${close}" and "${dict}[${key}]"=="0" log 默认关闭,不进行操作
|
||||
|
||||
Edit_Decryption Profile
|
||||
[Arguments] ${id-name} ${value} ${name} ${dict1}=null ${fail1}=null ${min1}=null
|
||||
[Arguments] ${id-name} ${name} ${search} ${dict1}=null ${fail1}=null ${min1}=null
|
||||
... ${max1}=null
|
||||
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||
sleep 2
|
||||
click id=profilesTabs_Profile_DecryptionProfile #点击Decryption Profile
|
||||
Sleep 1
|
||||
click id=one-input #点击搜索框
|
||||
Settings-Search ${id-name} ${search} #搜索框的关键字
|
||||
sleep 1
|
||||
click ${id-name} #选择搜索类型
|
||||
sleep 1
|
||||
input id=sreach_input ${value} #输入内容
|
||||
sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
sleep 1
|
||||
click xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/div/div[3]/table/tbody/tr #点击搜索列表
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span #点击搜索列表
|
||||
Sleep 1
|
||||
click id=insertEdit #点击Edit
|
||||
Sleep 2
|
||||
@@ -885,17 +850,11 @@ Edit_Decryption Profile
|
||||
... ELSE log 错误
|
||||
click id=decryption-ok
|
||||
sleep 2
|
||||
click id=one-input #点击搜索框
|
||||
sleep 1
|
||||
click id=input_list_li2 #选择搜索类型-name
|
||||
sleep 1
|
||||
input id=sreach_input ${name} #输入内容
|
||||
sleep 1
|
||||
click id=select_new_search_btn #点击搜索按钮
|
||||
${name1} get text xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||||
Settings-Search ${id-name} ${search} #搜索框的关键字
|
||||
${name1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||
Should Be Equal As Strings ${name1} ${name}
|
||||
sleep 1
|
||||
click xpath=//*[@id="app"]/div/div[3]/div/div/div[3]/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
||||
Delete
|
||||
|
||||
Delete
|
||||
|
||||
Reference in New Issue
Block a user