新增mailServer页面自动化测试用例及相关关键字,AuditLogs新增MailServer操作用例
This commit is contained in:
@@ -309,6 +309,16 @@ AuditLogsRoles
|
|||||||
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[3]/td[2]/div/div Add
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[3]/td[2]/div/div Add
|
||||||
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[2]/td[2]/div/div Update
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[2]/td[2]/div/div Update
|
||||||
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div Delete
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div Delete
|
||||||
|
|
||||||
|
AuditLogsMailServer
|
||||||
|
[Tags] Positive UI Mail Server Administration AuditLogs
|
||||||
|
EditMailServer smtp.163.com 465 open test_name l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
||||||
|
AuditLogsSearch 1 Mail Server
|
||||||
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div
|
||||||
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div 1
|
||||||
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Mail Server
|
||||||
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[4]/td[2]/div/div Update
|
||||||
|
|
||||||
AuditLogsLDAPServer
|
AuditLogsLDAPServer
|
||||||
[Tags] Positive UI LDAP Server Administration AuditLogs
|
[Tags] Positive UI LDAP Server Administration AuditLogs
|
||||||
|
|||||||
70
01-TestCase/tsg_ui/ui_administration/MailServerCase.robot
Normal file
70
01-TestCase/tsg_ui/ui_administration/MailServerCase.robot
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Force Tags tsg-ui Mail Server
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/administration/Administration.robot
|
||||||
|
Library OperatingSystem
|
||||||
|
*** Test Cases ***
|
||||||
|
|
||||||
|
EditMailServer
|
||||||
|
[Tags] Positive UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com 465 open test_name l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion /html/body/div[last()]/p Success
|
||||||
|
|
||||||
|
EditMailServerCloseNeedAuthentication
|
||||||
|
[Tags] Positive UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com 465 close test_name l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion-ElementAttributes //*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div el-switch class
|
||||||
|
|
||||||
|
EditMailServerCloseSSL
|
||||||
|
[Tags] Positive UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com 465 open test_name l1157517579@163.com XEYQVHEMTOBOJSAP close
|
||||||
|
Assertion-ElementAttributes //*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[7]/div/div el-switch class
|
||||||
|
|
||||||
|
EditMailServerPortMin
|
||||||
|
[Tags] Boundary UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com 0 open test_name l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion /html/body/div[last()]/p Success
|
||||||
|
|
||||||
|
EditMailServerPortMax
|
||||||
|
[Tags] Boundary UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com 65535 open test_name l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion /html/body/div[last()]/p Success
|
||||||
|
|
||||||
|
EditMailServerNameMinSize
|
||||||
|
[Tags] Boundary UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com 465 open 1 l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion /html/body/div[last()]/p Success
|
||||||
|
|
||||||
|
EditMailServerNameMaxSize
|
||||||
|
[Tags] Boundary UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com 465 open EditMailServerNameMinSizeEditMai l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion /html/body/div[last()]/p Success
|
||||||
|
|
||||||
|
EditMailServerFormatError
|
||||||
|
[Tags] Negtive UI Administration Mail Server
|
||||||
|
EditMailServer smtp163com 465 open test_name l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion //*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[1]/div/div[2] Server error
|
||||||
|
|
||||||
|
EditMailServerPortExceedMax
|
||||||
|
[Tags] Boundary UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com 65536 open test_name l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion //*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[2]/div/div[2] Port error
|
||||||
|
|
||||||
|
EditMailServerPortLessthanMin
|
||||||
|
[Tags] Boundary UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com -1 open test_name l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion //*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[2]/div/div[2] Port error
|
||||||
|
|
||||||
|
EditMailServerE-mailFormatError
|
||||||
|
[Tags] Boundary UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com -1 open test_name l1157517579com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion //*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[5]/div/div[2] Email error
|
||||||
|
|
||||||
|
RestoreMailServer
|
||||||
|
[Tags] Positive UI Administration Mail Server
|
||||||
|
EditMailServer smtp.163.com 465 open test_name l1157517579@163.com XEYQVHEMTOBOJSAP open
|
||||||
|
Assertion /html/body/div[last()]/p Success
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -476,6 +476,37 @@ UpdataLoginRestrictionsSQLIP
|
|||||||
${return} Execute Sql String UPDATE login_restrictions_config SET login_addr_whitelist='${Whitelist}' WHERE id=1
|
${return} Execute Sql String UPDATE login_restrictions_config SET login_addr_whitelist='${Whitelist}' WHERE id=1
|
||||||
Disconnect From Database
|
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
|
Login
|
||||||
[Arguments] ${UserName} ${Password}
|
[Arguments] ${UserName} ${Password}
|
||||||
|
|||||||
@@ -2551,7 +2551,7 @@ DeleteReferencedData
|
|||||||
${text} get text xpath=/html/body/div[last()]/p
|
${text} get text xpath=/html/body/div[last()]/p
|
||||||
Should Be Equal As Strings ${text} ${PromptInformation}
|
Should Be Equal As Strings ${text} ${PromptInformation}
|
||||||
|
|
||||||
Assertion
|
SettingsAssertion
|
||||||
[Arguments] ${assertxpath} ${asserttext}
|
[Arguments] ${assertxpath} ${asserttext}
|
||||||
${text} Get text xpath=${assertxpath}
|
${text} Get text xpath=${assertxpath}
|
||||||
Should Be Equal As Strings ${text} ${asserttext}
|
Should Be Equal As Strings ${text} ${asserttext}
|
||||||
|
|||||||
Reference in New Issue
Block a user