提交修改安全策略新增关键字和提交代理策略新增关键字(未完成)
This commit is contained in:
@@ -38,6 +38,7 @@ Create-Source-Button
|
||||
Create-Destination-Button
|
||||
[Documentation] 点击Destination的加号
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form/div/div[5]/div[1]/div/div 10
|
||||
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
|
||||
Create-Application-Button
|
||||
[Documentation] 点击Application的加号
|
||||
@@ -220,10 +221,12 @@ Profile-SearchorCreate
|
||||
... ${file}:上传文件路径
|
||||
... 判断是新建还是搜索profile
|
||||
sleep 1
|
||||
click element id=html_profile
|
||||
sleep 1
|
||||
run keyword if "${SearchorCreate}"=="Search" run keywords sleep 1
|
||||
... AND input text id=filedata_profileName ${ProfileName}
|
||||
... AND sleep 1
|
||||
... AND press keys id=filedata_profileName
|
||||
... AND press keys id=filedata_profileName ENTER
|
||||
... AND sleep 1
|
||||
... AND click element id=filelist_select0
|
||||
... ELSE IF "${SearchorCreate}"=="Create" run keywords sleep 1
|
||||
@@ -503,9 +506,9 @@ LogSession
|
||||
Enabled
|
||||
[Arguments] ${Enabled}
|
||||
[Documentation] 调用次关键字前需要添加必填参数:
|
||||
... ${Enabled}:填入open或其他
|
||||
... ${Enabled}:填入open或其他
|
||||
run keyword if "${Enabled}"=="open" run keywords sleep 1
|
||||
... AND click element xpath=//*[@id="policy_paper_left"]/div[18]/label[contains(text(), "Enabled")]/following-sibling::div/div
|
||||
... AND click element xpath=//*[@id="policy_paper_left"]/div/label[contains(text(), "Enabled")]/following-sibling::div/div
|
||||
... AND sleep 2
|
||||
... AND click element xpath=/html/body/div/div/div[3]/button[2]
|
||||
... ELSE log 开启日志
|
||||
@@ -951,12 +954,12 @@ Initialize-Policie
|
||||
... AND click element id=security_action_deny
|
||||
... ELSE log 不修改
|
||||
sleep 1
|
||||
${status} Run Keyword And Return Status Page should contain element /html/body/div[1]/div/div[3]/div[2]/div/div[1]/form[1]/div/div[4]/div[1]/div/div/div #判断页面是否包含该元素
|
||||
${status} Run Keyword And Return Status Page should contain element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form[1]/div/div[4]/div[1]/div/div/div #判断页面是否包含该元素
|
||||
run keyword if "${status}"=="False" log go on
|
||||
run keyword if "${status}"=="True" run keywords sleep 1
|
||||
... AND click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form[1]/div/div[4]/div[1]/div/div/div/p/span/span/i[2]
|
||||
... AND sleep 1
|
||||
${status1} Run Keyword And Return Status Page should contain element /html/body/div[1]/div/div[3]/div[2]/div/div[1]/form[1]/div/div[5]/div[1]/div/div/div #判断页面是否包含该元素
|
||||
${status1} Run Keyword And Return Status Page should contain element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form[1]/div/div[5]/div[1]/div/div/div #判断页面是否包含该元素
|
||||
run keyword if "${status1}"=="False" log go on
|
||||
run keyword if "${status1}"=="True" run keywords sleep 1
|
||||
... AND click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[1]/form[1]/div/div[5]/div[1]/div/div/div/p/span/span/i[2]
|
||||
|
||||
Reference in New Issue
Block a user