新增mailServer页面自动化测试用例及相关关键字,AuditLogs新增MailServer操作用例
This commit is contained in:
@@ -476,6 +476,37 @@ UpdataLoginRestrictionsSQLIP
|
||||
${return} Execute Sql String UPDATE login_restrictions_config SET login_addr_whitelist='${Whitelist}' WHERE id=1
|
||||
Disconnect From Database
|
||||
|
||||
|
||||
EditMailServer
|
||||
[Arguments] ${server} ${port} ${NeedAuthentication} ${name} ${e-mail} ${password} ${SSL}
|
||||
[Documentation]
|
||||
...
|
||||
AdminOpenPages sidebarsystem_MailServer sidebarsystem_MailServer
|
||||
sleep 1
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[1]/div/div/input ${server}
|
||||
sleep 1
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[2]/div/div/input ${port}
|
||||
sleep 1
|
||||
${status} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div class
|
||||
run keyword if "${NeedAuthentication}" == "close" and "${status}" == "el-switch is-checked" run keywords sleep 1
|
||||
... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div/span
|
||||
run keyword if "${NeedAuthentication}" == "open" and "${status}" == "el-switch" run keywords sleep 1
|
||||
... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div/span
|
||||
sleep 1
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[4]/div/div/div[1]/input ${name}
|
||||
sleep 1
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[5]/div/div/input ${e-mail}
|
||||
sleep 1
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[6]/div/div/input ${password}
|
||||
sleep 1
|
||||
${SSLstatus} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div class
|
||||
run keyword if "${SSL}" == "close" and "${SSLstatus}" == "el-switch is-checked" run keywords sleep 1
|
||||
... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div/span
|
||||
run keyword if "${SSL}" == "open" and "${SSLstatus}" == "el-switch" run keywords sleep 1
|
||||
... AND click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div/span
|
||||
sleep 1
|
||||
click element id=mailServerOk
|
||||
sleep 1
|
||||
|
||||
Login
|
||||
[Arguments] ${UserName} ${Password}
|
||||
|
||||
Reference in New Issue
Block a user