2021-02-03 20:06:44 +08:00
|
|
|
*** Settings ***
|
|
|
|
|
Force Tags tsg-ui Audit Logs
|
|
|
|
|
Resource ../../../02-Keyword/tsg_ui/administration/Administration.robot
|
|
|
|
|
Library OperatingSystem
|
|
|
|
|
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
|
|
|
|
|
Library DateTime
|
|
|
|
|
*** Test Cases ***
|
|
|
|
|
|
|
|
|
|
AuditLogsResponsePage
|
|
|
|
|
[Tags] Positive UI Response Page Administration AuditLogs
|
|
|
|
|
CreateResponsePages AuditLogsResponsePage ${path}response_pages_files\\Create-ResponsePages-test.html name
|
|
|
|
|
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div
|
|
|
|
|
Edit-Response-Pages ${id} EditAuditLogsResponsePage ${path}response_pages_files\\Create-ResponsePages-test-1.html id
|
|
|
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
|
|
|
|
|
DeleteresinseDel
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Response Page
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Response Page
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsInsertScript
|
|
|
|
|
[Tags] Positive UI Insert Script Administration AuditLogs
|
|
|
|
|
CreateInsertScripts AuditLogsInsertScript ${path}insert_files\\Create-Insert Scripts-test.css css name
|
|
|
|
|
${id} 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[1]/div/div/span
|
|
|
|
|
EditInsertScripts ${id} EditAuditLogsInsertScript ${path}insert_files\\Create-Insert Scripts-test.css css id
|
|
|
|
|
click 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
|
|
|
|
|
Delete
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Insert Script
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Insert Script
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsHijackFile
|
|
|
|
|
[Tags] Positive UI Hijack File Administration AuditLogs
|
|
|
|
|
CreateHijackFiles AuditLogsHijackFile ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
|
|
|
|
|
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/span
|
|
|
|
|
EditHijackFiles ${id} EditAuditLogsHijackFile ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 id
|
|
|
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
|
|
|
|
|
DeletehijackDel
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Hijack File
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Hijack File
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsTrafficMirrorProfile
|
|
|
|
|
[Tags] Positive UI Traffic Mirror Profile Administration AuditLogs
|
|
|
|
|
CreateTrafficMirrorProfiles AuditLogsTrafficMirrorProfile xpath=/html/body/div/div[1]/div[1]/ul/li[1] 88 name
|
|
|
|
|
${id} 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[1]/div/div/span
|
|
|
|
|
EditTrafficMirrorProfiles ${id} EditAuditLogsTrafficMirrorProfile xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 id
|
|
|
|
|
click 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
|
|
|
|
|
DeletetrafficMirrorDel
|
2021-03-12 10:31:15 +08:00
|
|
|
sleep ${sleep}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Traffic Mirror Profile
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Traffic Mirror Profile
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsDecryptionProfile
|
|
|
|
|
[Tags] Positive UI Decryption Profile Administration AuditLogs
|
|
|
|
|
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
|
|
|
|
|
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
|
|
|
|
|
... Allow HTTP/2=0
|
|
|
|
|
CreateDecryptionProfile AuditLogsDecryptionProfile name ${dict}
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
2021-02-03 20:06:44 +08:00
|
|
|
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
2021-02-03 20:06:44 +08:00
|
|
|
${dict1} Create Dictionary Common Name=1 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
|
|
|
|
|
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
|
|
|
|
|
... Allow HTTP/2=0
|
|
|
|
|
EditDecryptionProfile ${id} EditAuditLogsDecryptionProfile id ${dict1}
|
|
|
|
|
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
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Decryption Profile
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Decryption Profile
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsSNATIPPools
|
|
|
|
|
[Tags] Positive UI SNAT IP Pools Administration AuditLogs
|
|
|
|
|
${iplist} create list 192.168.50.35
|
|
|
|
|
CreateSNATIPPools SNAT_IP_Pools_Create-001 1 ${iplist}
|
|
|
|
|
${id} get text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]/td[1]/div/div/span
|
|
|
|
|
EditSNATIPPools SNAT_IP_Pools_Create-001 Name EditSNATIPPoolsSName null
|
|
|
|
|
SNATIPDelete EditSNATIPPoolsSName Name
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} SNAT IP Pools
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div SNAT IP Pools
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsVPNAccounts
|
|
|
|
|
[Tags] Positive UI VPN Accounts Administration AuditLogs
|
2021-03-11 15:10:08 +08:00
|
|
|
${a} evaluate random.randint(100000,999999) random
|
|
|
|
|
CreateVPNAccounts ${TEST NAME}${a} 111111 name
|
|
|
|
|
EditVPNAccounts ${TEST NAME}${a} 222222 name
|
2021-02-03 20:06:44 +08:00
|
|
|
VPNAccountsDelete
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch-NotID VPN Accounts
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div VPN Accounts
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsTrustedCertificateAuthorities
|
|
|
|
|
[Tags] Positive UI Trusted Certificate Authorities Administration AuditLogs
|
|
|
|
|
importTrustedCertificateAuthorities AuditLogsTrustedCertificateAuthorities ${path}keyrings//root//ca-cer.pem name
|
|
|
|
|
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span
|
|
|
|
|
EditTrustedCertificateAuthorities ${id} EditAuditLogsTrustedCertificateAuthorities ${path}keyrings//root//ca-cer.pem id
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
|
|
|
|
DeleteAuthorities_del
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Trusted Certificate Authorities
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Trusted Certificate Authorities
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsDecryptionKeyrings
|
|
|
|
|
[Tags] Positive UI Decryption Keyrings Administration AuditLogs
|
|
|
|
|
CreateDecryptionKeyrings AuditLogsDecryptionKeyrings ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 name
|
|
|
|
|
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span
|
|
|
|
|
EditDecryptionKeyrings ${id} EditAuditLogsDecryptionKeyrings ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 1
|
|
|
|
|
... id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 id
|
|
|
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
|
|
|
|
DeleteKeyrings_del
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Decryption Keyrings
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Decryption Keyrings
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsSSLDecryptionExclusion
|
|
|
|
|
[Tags] Positive UI SSL Decryption Exclusion Administration AuditLogs
|
|
|
|
|
CreateSSLDecryptionExclusion *myssl.com myssl.com myssl.com name
|
|
|
|
|
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span
|
|
|
|
|
EditSSLDecryptionExclusion ${id} $www.jianshu.com 简书 www.jianshu.com id
|
|
|
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
|
|
|
|
Deletessl_del
|
2021-03-03 11:30:35 +08:00
|
|
|
sleep ${sleep}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} SSL Decryption Exclusion
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div SSL Decryption Exclusion
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsCachedIntermediateCertificates
|
|
|
|
|
[Tags] Positive UI Cached Intermediate Certificates Administration AuditLogs
|
|
|
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
|
|
|
|
|
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep}
|
2021-02-03 20:06:44 +08:00
|
|
|
CachedIntermediateCertificatesSearch ${id} //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span id
|
|
|
|
|
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/span
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
|
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/span
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
|
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Cached Intermediate Certificates
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Cached Intermediate Certificates
|
|
|
|
|
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 Update
|
|
|
|
|
|
|
|
|
|
AuditLogsSSLFingerprint
|
|
|
|
|
[Tags] Positive UI SSL Fingerprint Administration AuditLogs
|
2021-03-12 10:31:15 +08:00
|
|
|
${a} evaluate random.randint(1000,9999) random
|
|
|
|
|
${b} evaluate random.randint(1000,9999) random
|
|
|
|
|
CreateSSLFingerprint cccccc4db3e351bbd8d38b${a}1ffddd Yes JA3Hash Description=AuditLogsSSLFingerprint
|
2021-02-03 20:06:44 +08:00
|
|
|
${id1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/div/span
|
2021-03-12 10:31:15 +08:00
|
|
|
EditSSLFingerprint ${id1} a75de4ddd3e351b${b}3ffffffffffff No id Description=EditAuditLogsSSLFingerprint
|
2021-02-03 20:06:44 +08:00
|
|
|
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr
|
|
|
|
|
DeleteSSLFingerprint
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
SSLFingerprintImportJA3 ${path}SSLFingerprint_files/InportSSLFingerprint.csv
|
|
|
|
|
Settings-Search d8c87baaaaaaaaaaaa9e41242626c2f3 JA3Hash
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
2021-02-03 20:06:44 +08:00
|
|
|
${id2} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/div/span
|
|
|
|
|
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr
|
|
|
|
|
DeleteSSLFingerprint
|
|
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id1} SSL Fingerprint
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id1}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div SSL Fingerprint
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id2} SSL Fingerprint
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id2}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div SSL Fingerprint
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[2]/td[2]/div/div Import
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsDPacketCapture
|
|
|
|
|
[Tags] Positive UI Packet Capture Administration AuditLogs
|
|
|
|
|
CreatePacketCapture PacketCaptureCreateProtocolUDP IPV4 ${testClentIP} TCP Atyrau 10 10 80 1.1.1.1 8080
|
|
|
|
|
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div
|
|
|
|
|
EditPacketCapture PacketCaptureEditSearchID IPV6 fe80::3cf8:a41c:122a:b3bd UDP Karaganda 20 20 8080 fe80::3cf8:a41c:122a:b3 80
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep}
|
2021-02-03 20:06:44 +08:00
|
|
|
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/div/span/i[2]
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]
|
|
|
|
|
DeletePacketCapture
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Packet Capture
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Packet Capture
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[4]/td[2]/div/div Add
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[3]/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
|
|
|
|
|
|
|
|
|
|
AuditLogsIPLibraries
|
|
|
|
|
[Tags] Positive UI IP Libraries Administration AuditLogs
|
2021-02-24 18:28:30 +08:00
|
|
|
${a} evaluate random.randint(100000,999999) random
|
2021-02-03 20:06:44 +08:00
|
|
|
${iplist} create list 1.1.1.1-2.2.2.2
|
2021-02-24 18:28:30 +08:00
|
|
|
CreateIpLibraries Geo Name City Algeria ${a} ${a} ${iplist} Longitude=-1 Latitude=12.13
|
|
|
|
|
EditIpLibraries Geo Name ${a} Longitude=-2 Latitude=12.13
|
2021-02-03 20:06:44 +08:00
|
|
|
DeleteIPLibraries
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
2021-02-24 18:28:30 +08:00
|
|
|
AuditLogsSearch ${a} IP Libraries
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-24 18:28:30 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${a}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div IP Libraries
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
|
|
|
|
|
|
|
|
|
AuditLogsUsers
|
|
|
|
|
[Tags] Positive UI Users Administration AuditLogs
|
|
|
|
|
${a} evaluate random.randint(10000,99990) random
|
|
|
|
|
UserCreatePage UsersEdit ${a} 111111 log 30 log superuser
|
|
|
|
|
UserSearchName ${a} UserName
|
|
|
|
|
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/span/span
|
|
|
|
|
UserEdit 1111 close
|
|
|
|
|
UserSearchName ${a} UserName
|
|
|
|
|
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[10]/div/div/span/div/span
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} Users
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Users
|
|
|
|
|
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[1]/td[2]/div/div Update
|
|
|
|
|
|
|
|
|
|
AuditLogsRoles
|
|
|
|
|
[Tags] Positive UI Roles Administration AuditLogs
|
|
|
|
|
${list} Create list //*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div[2]/div/ul/li[1]/div/i
|
|
|
|
|
... //*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div[2]/div/ul/li[2]/div/i
|
2021-02-24 18:28:30 +08:00
|
|
|
${a} evaluate random.randint(10000,99990) random
|
|
|
|
|
CreateRoles RolesEditName${a} 自动化测试 ${list}
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled id=profilesTabs_Profile_Insert ${sleep_Wait}
|
2021-02-24 18:28:30 +08:00
|
|
|
RoleSearch RolesEditName${a}
|
2021-02-03 20:06:44 +08:00
|
|
|
Click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr
|
2021-02-24 18:28:30 +08:00
|
|
|
EditRoles name=EditRolesEditName${a}
|
|
|
|
|
RoleSearch EditRolesEditName${a}
|
2021-02-03 20:06:44 +08:00
|
|
|
RolesDelete
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch-NotID Roles
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Roles
|
|
|
|
|
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[1]/td[2]/div/div Delete
|
2021-02-22 13:38:18 +08:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
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
|
2021-03-01 10:03:36 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span Update
|
2021-02-05 10:22:07 +08:00
|
|
|
|
|
|
|
|
AuditLogsLDAPServer
|
|
|
|
|
[Tags] Positive UI LDAP Server Administration AuditLogs
|
|
|
|
|
${list} Create List CreateLDAPServer 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 21
|
|
|
|
|
${list1} Create List ${TEST NAME} 192.168.40.120 389 cn=root,dc=bifang,dc=com uid dc=bifang,dc=com 111111 22
|
|
|
|
|
CreateLDAPServer ${list}
|
|
|
|
|
LDAPServerSearch CreateLDAPServer name
|
|
|
|
|
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span
|
|
|
|
|
EditLDAPServer ${list1} open
|
|
|
|
|
LDAPServerSearch ${id} id
|
|
|
|
|
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[7]/div/div/span/div/span
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
2021-02-05 10:22:07 +08:00
|
|
|
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/i
|
|
|
|
|
DeleteLDAPServer
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-05 10:22:07 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch ${id} LDAP Server
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-05 10:22:07 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${id}
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div LDAP Server
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[4]/td[2]/div/div Add
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[3]/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
|
|
|
|
|
|
|
|
|
|
AuditLogsLoginRestrictions
|
|
|
|
|
[Tags] Positive UI LDAP Server Administration Login Restrictions
|
|
|
|
|
AdminOpenPages sidebarLogin_Restrictions sidebarLogin_Restrictions
|
|
|
|
|
AddAuthorizedSourceIP 255.145.111.1/24
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-05 10:22:07 +08:00
|
|
|
LoginRestrictions-SearchIP 255.145.111.1/24
|
|
|
|
|
LoginRestrictions-DeleteIP
|
|
|
|
|
RestrictionsButton open
|
|
|
|
|
EditMaximumLoginAttemepts 2
|
|
|
|
|
EditLockTime 1
|
|
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogsSearch-NotID Login Restrictions
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}
|
2021-02-05 10:22:07 +08:00
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Login Restrictions
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[4]/td[2]/div/div Update
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[3]/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 Update
|
|
|
|
|
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[5]/td[2]/div/div Update
|
2021-02-03 20:06:44 +08:00
|
|
|
|
2021-02-05 10:22:07 +08:00
|
|
|
|
2021-02-03 20:06:44 +08:00
|
|
|
AuditLogsSearchDate
|
|
|
|
|
[Tags] Positive UI Administration AuditLogs
|
|
|
|
|
${date1}= Get Current Date result_format=%Y-%m-%d %H:%M:%S #获取当前时间
|
|
|
|
|
log ${date1}
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep}
|
2021-02-03 20:06:44 +08:00
|
|
|
${list} Create list //*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div[2]/div/ul/li[1]/div/i
|
|
|
|
|
... //*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div[2]/div/ul/li[2]/div/i
|
|
|
|
|
CreateRoles ${TEST NAME} 自动化测试 ${list}
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled id=profilesTabs_Profile_Insert ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
RoleSearch ${TEST NAME}
|
|
|
|
|
Click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr
|
|
|
|
|
EditRoles name=${TEST NAME}
|
|
|
|
|
RoleSearch ${TEST NAME}
|
|
|
|
|
RolesDelete
|
2021-03-05 17:43:21 +08:00
|
|
|
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
|
2021-02-03 20:06:44 +08:00
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/span/div/div/span/div/span/div/div/input
|
|
|
|
|
${date2}= Get Current Date result_format=%Y-%m-%d %H:%M:%S
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
2021-02-03 20:06:44 +08:00
|
|
|
click element xpath=/html/body/div/div[1]/div/div[3]/div/div[2]/div[1]
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
2021-02-03 20:06:44 +08:00
|
|
|
AuditLogsSearch-NotID Roles
|
2021-03-05 17:43:21 +08:00
|
|
|
sleep ${sleep_min}
|
2021-02-03 20:06:44 +08:00
|
|
|
${date3} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[6]/div/div/span
|
|
|
|
|
${time1} Subtract Date From Date ${date3} ${date1}
|
|
|
|
|
${time2} Subtract Date From Date ${date2} ${date3}
|
|
|
|
|
Should Be True ${time1}>0
|
|
|
|
|
Should Be True ${time2}>0
|
|
|
|
|
|
|
|
|
|
AuditLogsTrunPage
|
|
|
|
|
[Tags] Positive UI Administration AuditLogs
|
|
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AdminTurnPage //*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/span[2]/div/input 2
|
2021-02-04 12:01:34 +08:00
|
|
|
... //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span last=1 lastxpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/ul/li[last()]
|
2021-02-03 20:06:44 +08:00
|
|
|
|
|
|
|
|
PagingDisplay
|
|
|
|
|
[Tags] Positive UI Administration AuditLogs
|
|
|
|
|
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
AuditLogs-PagingDisplay 100 # 1 //*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/ul/li[8]
|
|
|
|
|
|
|
|
|
|
# AuditLogExport
|
|
|
|
|
# [Tags] Positive UI Administration AuditLogs
|
|
|
|
|
# AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
|
|
|
|
|
# ${date1}= Get Current Date result_format=%Y%m%d%H%M%S
|
|
|
|
|
# click element id=audit_logExport
|
2021-03-05 17:43:21 +08:00
|
|
|
# sleep ${sleep}
|
2021-02-03 20:06:44 +08:00
|
|
|
# ${a} Set Variable ${1}
|
|
|
|
|
# ${date1} Evaluate ${date1}-${a}
|
|
|
|
|
# Should Exist ${Downloadpath}audit_log_${date1}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|