1.增加SystemUsage页面测试用例 2.修改增加Case和关键字
This commit is contained in:
@@ -148,7 +148,7 @@ HijackFilesUploadNullFile
|
||||
|
||||
HijackFilesUploadExceed20MFile
|
||||
[Tags] Negtive html Settings HijackFile
|
||||
UploadFilesSize HijackFiles HijackFilesUploadExceed20MFile ${path}hijack_files/Exceed20MFile.html File Maximum Limitation 20MB
|
||||
UploadFilesSize HijackFiles File size upload limit is 20MB ${path}hijack_files/Exceed20MFile.html File Maximum Limitation 20MB
|
||||
|
||||
HijackFilesUploadTypeDoesNotMatch
|
||||
[Tags] Negtive Settings HijackFile
|
||||
|
||||
@@ -97,7 +97,7 @@ ResponsePageUploadNullFile
|
||||
|
||||
ResponsePageUploadExceed20MFile
|
||||
[Tags] Negtive UI File Settings ResponsePages
|
||||
UploadFilesSize ResponsePages ResponsePageUploadExceed20MFile ${path}response_pages_files\\Exceed20MFile.html File Maximum Limitation 20MB
|
||||
UploadFilesSize ResponsePages File size upload limit is 20MB ${path}response_pages_files\\Exceed20MFile.html File Maximum Limitation 20MB
|
||||
|
||||
ResponsePagesFileTypeDoesNotMatch
|
||||
[Tags] Negtive UI File Settings ResponsePages
|
||||
|
||||
275
01-TestCase/tsg_ui/ui_settings/SystemUsageCase.robot
Normal file
275
01-TestCase/tsg_ui/ui_settings/SystemUsageCase.robot
Normal file
@@ -0,0 +1,275 @@
|
||||
*** Settings ***
|
||||
Force Tags tsg-ui settings VPN Accounts
|
||||
Resource ../../../03-Variable/bifangapivariable.txt
|
||||
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
|
||||
Library OperatingSystem
|
||||
Library String
|
||||
Library Collections
|
||||
|
||||
*** Test Cases ***
|
||||
SystemUsageProxyDisabled
|
||||
[Tag] Positive UI Proxy Settings SystemUsage
|
||||
SystemUsagePolicyVerification Proxy_Disabled
|
||||
|
||||
SystemUsageProxyEnabled
|
||||
[Tag] Positive UI Proxy Settings SystemUsage
|
||||
SystemUsagePolicyVerification Proxy_Enabled
|
||||
|
||||
SystemUsageSecurityDisabled
|
||||
[Tag] Positive UI Security Settings SystemUsage
|
||||
SystemUsagePolicyVerification Security_Disabled
|
||||
|
||||
SystemUsageSecurityEnabled
|
||||
[Tag] Positive UI Security Settings SystemUsage
|
||||
SystemUsagePolicyVerification Security_Enabled
|
||||
|
||||
SystemUsageWANNATDisabled
|
||||
[Tag] Positive UI WANNAT Settings SystemUsage
|
||||
SystemUsagePolicyVerification WANNAT_Disabled
|
||||
|
||||
SystemUsageWANNATEnabled
|
||||
[Tag] Positive UI WANNAT Settings SystemUsage
|
||||
SystemUsagePolicyVerification WANNAT_Enabled
|
||||
|
||||
SystemUsageProxyTCPOptionsDisabled
|
||||
[Tag] Positive UI ProxyTCPOptions Settings SystemUsage
|
||||
SystemUsagePolicyVerification ProxyTCPOptions_Disabled
|
||||
|
||||
SystemUsageProxyTCPOptionsEnabled
|
||||
[Tag] Positive UI ProxyTCPOptions Settings SystemUsage
|
||||
SystemUsagePolicyVerification ProxyTCPOptions_Enabled
|
||||
|
||||
SystemUsageProxySQLDisabled
|
||||
[Tag] Positive UI Proxy SQL Settings SystemUsage
|
||||
SystemUsagePolicySQLVerification Proxy_Disabled Disabled
|
||||
|
||||
SystemUsageProxySQLEnabled
|
||||
[Tag] Positive UI Proxy SQL Settings SystemUsage
|
||||
SystemUsagePolicySQLVerification Proxy_Enabled Enabled
|
||||
|
||||
SystemUsageSecuritySQLDisabled
|
||||
[Tag] Positive UI Security SQL Settings SystemUsage
|
||||
SystemUsagePolicySQLVerification Security_Disabled Disabled
|
||||
|
||||
SystemUsageSecuritySQLEnabled
|
||||
[Tag] Positive UI Security SQL Settings SystemUsage
|
||||
SystemUsagePolicySQLVerification Security_Enabled Enabled
|
||||
|
||||
SystemUsageWANNATSQLDisabled
|
||||
[Tag] Positive UI WANNAT SQL Settings SystemUsage
|
||||
SystemUsagePolicySQLVerification WANNAT_Disabled Disabled
|
||||
|
||||
SystemUsageWANNATSQLEnabled
|
||||
[Tag] Positive UI WANNAT SQL Settings SystemUsage
|
||||
SystemUsagePolicySQLVerification WANNAT_Enabled Enabled
|
||||
|
||||
SystemUsageProxyTCPOptionsSQLDisabled
|
||||
[Tag] Positive UI ProxyTCPOptions SQL Settings SystemUsage
|
||||
SystemUsagePolicySQLVerification ProxyTCPOptions_Disabled Disabled
|
||||
|
||||
SystemUsageProxyTCPOptionsSQLEnabled
|
||||
[Tag] Positive UI ProxyTCPOptions SQL Settings SystemUsage
|
||||
SystemUsagePolicySQLVerification ProxyTCPOptions_Enabled Enabled
|
||||
|
||||
#*******************************************************Objects*************************************************************************
|
||||
|
||||
SystemUsageObjectAccountsItems
|
||||
[Tag] Positive UI Accounts Settings SystemUsage
|
||||
SystemUsagePolicyVerification Accounts_Items
|
||||
|
||||
SystemUsageObjectAccountsObjects
|
||||
[Tag] Positive UI Accounts Settings SystemUsage
|
||||
SystemUsagePolicyVerification Accounts_Objects
|
||||
|
||||
SystemUsageObjectFQDNsItems
|
||||
[Tag] Positive UI FQDNs Settings SystemUsage
|
||||
SystemUsagePolicyVerification FQDNs_Items
|
||||
|
||||
SystemUsageObjectFQDNsObjects
|
||||
[Tag] Positive UI FQDNs Settings SystemUsage
|
||||
SystemUsagePolicyVerification FQDNs_Objects
|
||||
|
||||
SystemUsageObjectHTTPSignaturesItems
|
||||
[Tag] Positive UI HTTPSignatures Settings SystemUsage
|
||||
SystemUsagePolicyVerification HTTPSignatures_Items
|
||||
|
||||
SystemUsageObjectHTTPSignaturesObjects
|
||||
[Tag] Positive UI HTTPSignatures Settings SystemUsage
|
||||
SystemUsagePolicyVerification HTTPSignatures_Objects
|
||||
|
||||
SystemUsageObjectKeywordsItems
|
||||
[Tag] Positive UI Keywords Settings SystemUsage
|
||||
SystemUsagePolicyVerification Keywords_Items
|
||||
|
||||
SystemUsageObjectKeywordsObjects
|
||||
[Tag] Positive UI Keywords Settings SystemUsage
|
||||
SystemUsagePolicyVerification Keywords_Objects
|
||||
|
||||
SystemUsageObjectSubscriberIDsItems
|
||||
[Tag] Positive UI SubscriberIDs Settings SystemUsage
|
||||
SystemUsagePolicyVerification SubscriberIDs_Items
|
||||
|
||||
SystemUsageObjectSubscriberIDsObjects
|
||||
[Tag] Positive UI SubscriberIDs Settings SystemUsage
|
||||
SystemUsagePolicyVerification SubscriberIDs_Objects
|
||||
|
||||
SystemUsageObjectURLsItems
|
||||
[Tag] Positive UI URLs Settings SystemUsage
|
||||
SystemUsagePolicyVerification URLs_Items
|
||||
|
||||
SystemUsageObjectURLsObjects
|
||||
[Tag] Positive UI URLs Settings SystemUsage
|
||||
SystemUsagePolicyVerification URLs_Objects
|
||||
|
||||
SystemUsageObjectIPAddressesIPV4Items
|
||||
[Tag] Positive UI IPAddresses Settings SystemUsage
|
||||
SystemUsagePolicyVerification IPAddresses_IPV4_Items
|
||||
|
||||
SystemUsageObjectIPAddressesIPV6Items
|
||||
[Tag] Positive UI IPAddresses Settings SystemUsage
|
||||
SystemUsagePolicyVerification IPAddresses_IPV6_Items
|
||||
|
||||
SystemUsageObjectIPAddressesIPObjects
|
||||
[Tag] Positive UI IPAddresses Settings SystemUsage
|
||||
SystemUsagePolicyVerification IPAddresses_IP_Objects
|
||||
|
||||
SystemUsageObjectIPAddressesGeographyItems
|
||||
[Tag] Positive UI IPAddresses Settings SystemUsage
|
||||
SystemUsagePolicyVerification IPAddresses_Geography_Items
|
||||
|
||||
SystemUsageObjectIPAddressesGeographyObjects
|
||||
[Tag] Positive UI IPAddresses Settings SystemUsage
|
||||
SystemUsagePolicyVerification IPAddresses_Geography_Objects
|
||||
|
||||
SystemUsageObjectIPAddressesIPLearningItems(IPv4)
|
||||
[Tag] Positive UI IPAddresses Settings SystemUsage
|
||||
SystemUsagePolicyVerification IPAddresses_IPLearning_Items(IPv4)
|
||||
|
||||
SystemUsageObjectIPAddressesIPLearningObjects
|
||||
[Tag] Positive UI IPAddresses Settings SystemUsage
|
||||
SystemUsagePolicyVerification IPAddresses_IPLearning_Objects
|
||||
|
||||
SystemUsageObjectApplicationsObjects
|
||||
[Tag] Positive UI Applications Settings SystemUsage
|
||||
SystemUsagePolicyVerification Applications_Objects
|
||||
|
||||
SystemUsageObjectApplicationsItems
|
||||
[Tag] Positive UI Applications Settings SystemUsage
|
||||
SystemUsagePolicyVerification Applications_Items
|
||||
|
||||
SystemUsageObjectApplicationsGroupsObjects
|
||||
[Tag] Positive UI Applications Settings SystemUsage
|
||||
SystemUsagePolicyVerification Applications_Groups_Objects
|
||||
|
||||
SystemUsageObjectApplicationsGroupsItems
|
||||
[Tag] Positive UI Applications Settings SystemUsage
|
||||
SystemUsagePolicyVerification Applications_Groups_Items
|
||||
|
||||
SystemUsageObjectApplicationsSelectorsObjects
|
||||
[Tag] Positive UI Applications Settings SystemUsage
|
||||
SystemUsagePolicyVerification Applications_Selectors_Objects
|
||||
|
||||
SystemUsageObjectApplicationsSelectorsItems
|
||||
[Tag] Positive UI Applications Settings SystemUsage
|
||||
SystemUsagePolicyVerification Applications_Selectors_Items
|
||||
|
||||
SystemUsageObjectSQLAccountsItems
|
||||
[Tag] Positive UI Accounts SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Accounts_Items
|
||||
|
||||
SystemUsageObjectSQLAccountsObjects
|
||||
[Tag] Positive UI Accounts SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Accounts_Objects
|
||||
|
||||
SystemUsageObjectSQLFQDNsItems
|
||||
[Tag] Positive UI FQDNs SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification FQDNs_Items
|
||||
|
||||
SystemUsageObjectSQLFQDNsObjects
|
||||
[Tag] Positive UI FQDNs SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification FQDNs_Objects
|
||||
|
||||
SystemUsageObjectSQLHTTPSignaturesItems
|
||||
[Tag] Positive UI HTTPSignatures SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification HTTPSignatures_Items
|
||||
|
||||
SystemUsageObjectSQLHTTPSignaturesObjects
|
||||
[Tag] Positive UI HTTPSignatures SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification HTTPSignatures_Objects
|
||||
|
||||
SystemUsageObjectSQLKeywordsItems
|
||||
[Tag] Positive UI Keywords SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Keywords_Items
|
||||
|
||||
SystemUsageObjectSQLKeywordsObjects
|
||||
[Tag] Positive UI Keywords SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Keywords_Objects
|
||||
|
||||
SystemUsageObjectSQLSubscriberIDsItems
|
||||
[Tag] Positive UI SubscriberIDs SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification SubscriberIDs_Items
|
||||
|
||||
SystemUsageObjectSQLSubscriberIDsObjects
|
||||
[Tag] Positive UI SubscriberIDs SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification SubscriberIDs_Objects
|
||||
|
||||
SystemUsageObjectSQLURLsItems
|
||||
[Tag] Positive UI URLs SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification URLs_Items
|
||||
|
||||
SystemUsageObjectSQLURLsObjects
|
||||
[Tag] Positive UI URLs SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification URLs_Objects
|
||||
|
||||
SystemUsageObjectSQLIPAddressesIPV4Items
|
||||
[Tag] Positive UI IPAddresses SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification IPAddresses_IPV4_Items
|
||||
|
||||
SystemUsageObjectSQLIPAddressesIPV6Items
|
||||
[Tag] Positive UI IPAddresses SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification IPAddresses_IPV6_Items
|
||||
|
||||
SystemUsageObjectSQLIPAddressesIPObjects
|
||||
[Tag] Positive UI IPAddresses SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification IPAddresses_IP_Objects
|
||||
|
||||
SystemUsageObjectSQLIPAddressesGeographyItems
|
||||
[Tag] Positive UI IPAddresses SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification IPAddresses_Geography_Items
|
||||
|
||||
SystemUsageObjectSQLIPAddressesGeographyObjects
|
||||
[Tag] Positive UI IPAddresses SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification IPAddresses_Geography_Objects
|
||||
|
||||
SystemUsageObjectSQLIPAddressesIPLearningItems(IPv4)
|
||||
[Tag] Positive UI IPAddresses SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification IPAddresses_IPLearning_Items(IPv4)
|
||||
|
||||
SystemUsageObjectSQLIPAddressesIPLearningObjects
|
||||
[Tag] Positive UI IPAddresses SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification IPAddresses_IPLearning_Objects
|
||||
|
||||
SystemUsageObjectSQLIPApplicationsItems
|
||||
[Tag] Positive UI Applications SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Applications_Items
|
||||
|
||||
SystemUsageObjectSQLIPApplicationsObjects
|
||||
[Tag] Positive UI Applications SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Applications_Objects
|
||||
|
||||
SystemUsageObjectSQLIPApplicationsGroupsObjects
|
||||
[Tag] Positive UI Applications SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Applications_Groups_Objects
|
||||
|
||||
SystemUsageObjectSQLApplicationsGroupsItems
|
||||
[Tag] Positive UI Applications SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Applications_Groups_Items
|
||||
|
||||
SystemUsageObjectSQLApplicationsSelectorsObjects
|
||||
[Tag] Positive UI Applications SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Applications_Selectors_Objects
|
||||
|
||||
SystemUsageObjectSQLApplicationsSelectorsItems
|
||||
[Tag] Positive UI Applications SQL Settings SystemUsage
|
||||
SystemUsageObjectsSQLVerification Applications_Selectors_Items
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
*** Settings ***
|
||||
Library Selenium2Library
|
||||
Library ../../../04-CustomLibrary/Custometest/Common.py
|
||||
Library DatabaseLibrary
|
||||
*** Keywords ***
|
||||
click
|
||||
[Arguments] ${element}
|
||||
@@ -1859,7 +1860,7 @@ CreateIpLibraries
|
||||
run keyword if "${Latitude}"!="null" Run Keywords input id=ip_geography_latitude ${Latitude}
|
||||
... AND sleep 1
|
||||
click id=IP_library_add
|
||||
Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div/div/input 20
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div 20
|
||||
#验证新建是否成功
|
||||
Switch_IP_Libraries ${type1} ${GeoNameID} ${GeoNameID}
|
||||
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
@@ -1889,7 +1890,7 @@ EditIpLibraries
|
||||
run keyword if "${Latitude}"!="null" Run Keywords input id=ip_geography_latitude ${Latitude}
|
||||
... AND sleep 1
|
||||
click id=IP_library_add
|
||||
sleep 2
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div 20
|
||||
#验证修改是否成功
|
||||
Switch_IP_Libraries ${type} ${GeoNameID} ${GeoNameID}
|
||||
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
@@ -1936,6 +1937,199 @@ CreateIpLibrariesErrorVerification
|
||||
sleep 2
|
||||
${text} get text xpath=${AssertPath}
|
||||
Should Be Equal As Strings ${text} ${AssertText}
|
||||
|
||||
SystemUsagePolicyVerification
|
||||
[Arguments] ${type}
|
||||
[Documentation]
|
||||
... ${type}:查询的字段 格式:(Proxy/Security/WANNAT/ProxyTCPOptions)_(Disabled/Enabled)
|
||||
Sleep 1
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarAdvanced #点击二级目录Advanced
|
||||
Sleep 2
|
||||
click id=Advanced/storageQuota #点击System Usage
|
||||
Sleep 2
|
||||
${text1}= SystemUsageChart ${type}
|
||||
click id=Advanced/ipLibrary
|
||||
sleep 1
|
||||
click id=Advanced/storageQuota
|
||||
sleep 1
|
||||
${text2}= SystemUsageText ${type}
|
||||
Should Be Equal As Strings ${text1} ${text2}
|
||||
|
||||
SystemUsageChart
|
||||
[Arguments] ${type}
|
||||
${ChartSuspension} Set Variable if "${type}"=="Proxy_Disabled" or "${type}"=="Proxy_Enabled" //*[@id="settings_storage"]/div[1]/div[2]/div[1]/div/div/div[2]/div[1] #为图上悬浮定位变量赋值
|
||||
... "${type}"=="Security_Disabled" or "${type}"=="Security_Enabled" //*[@id="settings_storage"]/div[1]/div[2]/div[1]/div/div/div[2]/div[2]
|
||||
... "${type}"=="WANNAT_Disabled" or "${type}"=="WANNAT_Enabled" //*[@id="settings_storage"]/div[1]/div[2]/div[1]/div/div/div[2]/div[3]
|
||||
... "${type}"=="ProxyTCPOptions_Disabled" or "${type}"=="ProxyTCPOptions_Enabled" //*[@id="settings_storage"]/div[1]/div[2]/div[1]/div/div/div[2]/div[4]
|
||||
... "${type}"=="Accounts_Items" or "${type}"=="Accounts_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[1]
|
||||
... "${type}"=="FQDNs_Items" or "${type}"=="FQDNs_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[2]
|
||||
... "${type}"=="HTTPSignatures_Items" or "${type}"=="HTTPSignatures_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[3] #定位不到
|
||||
... "${type}"=="Keywords_Items" or "${type}"=="Keywords_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[3]
|
||||
... "${type}"=="SubscriberIDs_Items" or "${type}"=="SubscriberIDs_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[5] #定位不到4、5、6URL
|
||||
... "${type}"=="URLs_Items" or "${type}"=="URLs_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[6]
|
||||
... "${type}"=="IPAddresses_IPV4_Items" or "${type}"=="IPAddresses_IPV6_Items" or "${type}"=="IPAddresses_IP_Objects" or "${type}"=="IPAddresses_Geography_Items" or "${type}"=="IPAddresses_Geography_Objects" or "${type}"=="IPAddresses_IPLearning_Items(IPv4)" or "${type}"=="IPAddresses_IPLearning_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[7]
|
||||
... "${type}"=="Applications_Items" or "${type}"=="Applications_Objects" or "${type}"=="Applications_Groups_Objects" or "${type}"=="Applications_Groups_Items" or "${type}"=="Applications_Selectors_Objects" or "${type}"=="Applications_Selectors_Items" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[2]/div[8]
|
||||
${ChartValueXpath} Set Variable if "${type}"=="Proxy_Disabled" /html/body/div[2]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span #为图上获取Value定位变量赋值
|
||||
... "${type}"=="Proxy_Enabled" /html/body/div[2]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="Security_Disabled" /html/body/div[2]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="Security_Enabled" /html/body/div[2]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="WANNAT_Disabled" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="WANNAT_Enabled" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="ProxyTCPOptions_Disabled" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="ProxyTCPOptions_Enabled" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="Accounts_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="Accounts_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="FQDNs_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="FQDNs_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="HTTPSignatures_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="HTTPSignatures_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="Keywords_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="Keywords_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="SubscriberIDs_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="SubscriberIDs_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="URLs_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="URLs_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IPV4_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[3]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IPV6_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[4]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IP_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_Geography_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[7]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_Geography_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[6]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IPLearning_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[9]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IPLearning_Items(IPv4)" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[10]/td[2]/div/span
|
||||
... "${type}"=="Applications_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="Applications_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[3]/td[2]/div/span
|
||||
... "${type}"=="Applications_Groups_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[5]/td[2]/div/span
|
||||
... "${type}"=="Applications_Groups_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[6]/td[2]/div/span
|
||||
... "${type}"=="Applications_Selectors_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[8]/td[2]/div/span
|
||||
... "${type}"=="Applications_Selectors_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[9]/td[2]/div/span
|
||||
Mouse Over xpath=${ChartSuspension}
|
||||
sleep 2
|
||||
${text1} get text xpath=${ChartValueXpath} #获取图表上的值
|
||||
[Return] ${text1}
|
||||
|
||||
SystemUsageText
|
||||
[Arguments] ${type}
|
||||
${TextSuspension} Set Variable if "${type}"=="Proxy_Disabled" or "${type}"=="Proxy_Enabled" //*[@id="settings_storage"]/div[1]/div[2]/div[1]/div/div/div[3]/div[1]/span/div/div[2] #在文本统计悬浮定位变量赋值
|
||||
... "${type}"=="Security_Disabled" or "${type}"=="Security_Enabled" //*[@id="settings_storage"]/div[1]/div[2]/div[1]/div/div/div[3]/div[2]
|
||||
... "${type}"=="WANNAT_Disabled" or "${type}"=="WANNAT_Enabled" //*[@id="settings_storage"]/div[1]/div[2]/div[1]/div/div/div[3]/div[3]
|
||||
... "${type}"=="ProxyTCPOptions_Disabled" or "${type}"=="ProxyTCPOptions_Enabled" //*[@id="settings_storage"]/div[1]/div[2]/div[1]/div/div/div[3]/div[4]
|
||||
... "${type}"=="Accounts_Items" or "${type}"=="Accounts_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[1]
|
||||
... "${type}"=="FQDNs_Items" or "${type}"=="FQDNs_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[2]
|
||||
... "${type}"=="HTTPSignatures_Items" or "${type}"=="HTTPSignatures_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[3]
|
||||
... "${type}"=="Keywords_Items" or "${type}"=="Keywords_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[4]
|
||||
... "${type}"=="SubscriberIDs_Items" or "${type}"=="SubscriberIDs_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[5]
|
||||
... "${type}"=="URLs_Items" or "${type}"=="URLs_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[6]
|
||||
... "${type}"=="IPAddresses_IPV4_Items" or "${type}"=="IPAddresses_IPV6_Items" or "${type}"=="IPAddresses_IP_Objects" or "${type}"=="IPAddresses_Geography_Items" or "${type}"=="IPAddresses_Geography_Objects" or "${type}"=="IPAddresses_IPLearning_Items(IPv4)" or "${type}"=="IPAddresses_IPLearning_Objects" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[7]
|
||||
... "${type}"=="Applications_Items" or "${type}"=="Applications_Objects" or "${type}"=="Applications_Groups_Objects" or "${type}"=="Applications_Groups_Items" or "${type}"=="Applications_Selectors_Objects" or "${type}"=="Applications_Selectors_Items" //*[@id="settings_storage"]/div[1]/div[2]/div[2]/div/div/div[3]/div[8]
|
||||
${TextValueXpath} Set Variable if "${type}"=="Proxy_Disabled" /html/body/div[2]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span #在文本统计获取Value定位变量赋值
|
||||
... "${type}"=="Proxy_Enabled" /html/body/div[2]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="Security_Disabled" /html/body/div[2]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="Security_Enabled" /html/body/div[2]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="WANNAT_Disabled" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="WANNAT_Enabled" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="ProxyTCPOptions_Disabled" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="ProxyTCPOptions_Enabled" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="Accounts_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="Accounts_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="FQDNs_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="FQDNs_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="HTTPSignatures_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="HTTPSignatures_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="Keywords_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="Keywords_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="SubscriberIDs_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="SubscriberIDs_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="URLs_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span
|
||||
... "${type}"=="URLs_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IPV4_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[3]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IPV6_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[4]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IP_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_Geography_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[7]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_Geography_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[6]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IPLearning_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[9]/td[2]/div/span
|
||||
... "${type}"=="IPAddresses_IPLearning_Items(IPv4)" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[10]/td[2]/div/span
|
||||
... "${type}"=="Applications_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[2]/td[2]/div/span
|
||||
... "${type}"=="Applications_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[3]/td[2]/div/span
|
||||
... "${type}"=="Applications_Groups_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[5]/td[2]/div/span
|
||||
... "${type}"=="Applications_Groups_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[6]/td[2]/div/span
|
||||
... "${type}"=="Applications_Selectors_Objects" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[8]/td[2]/div/span
|
||||
... "${type}"=="Applications_Selectors_Items" /html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[9]/td[2]/div/span
|
||||
Mouse Over xpath=${TextSuspension}
|
||||
sleep 1
|
||||
${text2} get text xpath=${TextValueXpath}
|
||||
[Return] ${text2}
|
||||
|
||||
SystemUsagePolicySQLVerification
|
||||
[Arguments] ${type} ${DisabledOREnabled}
|
||||
[Documentation]
|
||||
...
|
||||
Sleep 1
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarAdvanced #点击二级目录Advanced
|
||||
Sleep 2
|
||||
click id=Advanced/storageQuota #点击System Usage
|
||||
Sleep 1
|
||||
${text1}= SystemUsageText ${type}
|
||||
sleep 1
|
||||
${DisabledOREnabled} Set Variable if "${DisabledOREnabled}"=="Disabled" 0 1
|
||||
${SQL} Set Variable if "${type}"=="Proxy_Disabled" or "${type}"=="Proxy_Enabled" pxy_ctrl_compile
|
||||
... "${type}"=="Security_Disabled" or "${type}"=="Security_Enabled" tsg_security_compile
|
||||
... "${type}"=="WANNAT_Disabled" or "${type}"=="WANNAT_Enabled" wannat_compile
|
||||
... "${type}"=="ProxyTCPOptions_Disabled" or "${type}"=="ProxyTCPOptions_Enabled" pxy_tcp_option_compile
|
||||
Connect To Database Using Custom Params pymysql ${mysqlHost}
|
||||
${text2} query SELECT count(*) FROM ${SQL} WHERE is_initialize !=1 And is_valid=${DisabledOREnabled}
|
||||
${text2} Set Variable ${text2[0][0]}
|
||||
Disconnect From Database
|
||||
${a} Set Variable ${1}
|
||||
${text3} Evaluate ${text2}+${a}
|
||||
${text2} Set Variable if "${type}"=="Security_Enabled" or "${type}"=="ProxyTCPOptions_Enabled" ${text3} ${text2}
|
||||
Should Be Equal As Strings ${text1} ${text2}
|
||||
|
||||
SystemUsageObjectsSQLVerification
|
||||
[Arguments] ${type}
|
||||
[Documentation]
|
||||
...
|
||||
Sleep 1
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarAdvanced #点击二级目录Advanced
|
||||
Sleep 2
|
||||
click id=Advanced/storageQuota #点击System Usage
|
||||
Sleep 1
|
||||
${text1}= SystemUsageText ${type}
|
||||
sleep 1
|
||||
${SQL} Set Variable if "${type}"=="Accounts_Items" select count(*) from tsg_obj_account where is_initialize !=1
|
||||
... "${type}"=="Accounts_Objects" select count(*) from policy_object where group_type='account' and is_initialize !=1
|
||||
... "${type}"=="FQDNs_Items" SELECT count(*) from tsg_obj_fqdn where is_initialize !=1 and group_id !=1
|
||||
... "${type}"=="FQDNs_Objects" select count(*) from policy_object where group_type = 'fqdn' and is_initialize !=1
|
||||
... "${type}"=="HTTPSignatures_Items" select count(*) from tsg_obj_http_signature where is_initialize !=1
|
||||
... "${type}"=="HTTPSignatures_Objects" select count(*) from policy_object where group_type = 'http_signature' and is_initialize !=1
|
||||
... "${type}"=="Keywords_Items" select count(*) from tsg_obj_keywords where is_initialize !=1
|
||||
... "${type}"=="Keywords_Objects" select count(*) from policy_object where group_type = 'keywords' and is_initialize !=1
|
||||
... "${type}"=="SubscriberIDs_Items" select count(*) from tsg_obj_subscriber_id where is_initialize !=1
|
||||
... "${type}"=="SubscriberIDs_Objects" select count(*) from policy_object where group_type = 'subscriberid' and is_initialize !=1
|
||||
... "${type}"=="URLs_Items" select count(*) from tsg_obj_url where is_initialize !=1
|
||||
... "${type}"=="URLs_Objects" select count(*) from policy_object where group_type = 'url' and is_initialize !=1
|
||||
... "${type}"=="IPAddresses_IPV4_Items" select count(*) from tsg_obj_ip_addr where is_initialize !=1 and addr_type =4
|
||||
... "${type}"=="IPAddresses_IPV6_Items" select count(*) from tsg_obj_ip_addr where is_initialize !=1 and addr_type =6
|
||||
... "${type}"=="IPAddresses_IP_Objects" select count(*) from policy_object where group_type = 'ip' and is_initialize !=1 and group_sub_type = 'endpoint'
|
||||
... "${type}"=="IPAddresses_Geography_Items" SELECT count(*) from tsg_obj_geo_location where is_initialize !=1
|
||||
... "${type}"=="IPAddresses_Geography_Objects" select count(*) from policy_object where group_type = 'ip' and is_initialize !=1 and group_sub_type = 'geo_location'
|
||||
... "${type}"=="IPAddresses_IPLearning_Items(IPv4)" select count(*) from tsg_obj_ip_learning_addr where is_initialize !=1
|
||||
... "${type}"=="IPAddresses_IPLearning_Objects" select count(*) from policy_object where group_type = 'ip' and is_initialize !=1 and group_sub_type = 'ip_learning'
|
||||
... "${type}"=="Applications_Items" select count(*) from tsg_obj_app_id where is_initialize !=1 and is_valid = 1
|
||||
... "${type}"=="Applications_Objects" select count(*) from policy_object where group_type = 'app_id' and is_initialize !=1 and group_member_type = 1
|
||||
... "${type}"=="Applications_Groups_Objects" select count(*) from policy_object where group_type = 'app_id' and is_initialize !=1 and group_member_type != 1
|
||||
... "${type}"=="Applications_Groups_Items" select count(*) from tsg_obj_app_id where is_initialize !=1 and is_valid != 1
|
||||
... "${type}"=="Applications_Selectors_Objects" or "${type}"=="Applications_Selectors_Items" select count(*) from app_selector_compile
|
||||
Connect To Database Using Custom Params pymysql ${mysqlHost}
|
||||
${text2} query ${SQL}
|
||||
${text2} Set Variable ${text2[0][0]}
|
||||
Disconnect From Database
|
||||
Should Be Equal As Strings ${text1} ${text2}
|
||||
|
||||
Switch_Geographic_Locations
|
||||
[Arguments] ${Continent/Country}
|
||||
@@ -2133,9 +2327,7 @@ UploadFilesSize
|
||||
... AND input id=responsepages_profileName ${name} #输入name
|
||||
... AND Sleep 2
|
||||
... AND Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件
|
||||
... AND Sleep 2
|
||||
... AND click id=responseAddOk1 #点击OK缇交
|
||||
... AND sleep 2
|
||||
... AND sleep 1
|
||||
run keyword if "${Page}"=="InsertScripts" run keywords sleep 1
|
||||
... AND click id=children6 #点击一级目录Settings
|
||||
... AND Sleep 1
|
||||
@@ -2167,13 +2359,6 @@ UploadFilesSize
|
||||
... AND input id=hijack_profileName ${name} #输入name
|
||||
... AND Sleep 2
|
||||
... AND 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} #上传文件
|
||||
... AND Sleep 2
|
||||
... AND sleep 1
|
||||
... AND click id=hijackAddContentType #点击+ 打开侧滑窗口
|
||||
... AND Sleep 1
|
||||
... AND click id=text/html0 #选择文件类型
|
||||
... AND sleep 2
|
||||
... AND click id=hijackAddOk1 #点击OK
|
||||
... AND sleep 1
|
||||
run keyword if "${Page}"=="SSLFingerprint" run keywords sleep 1
|
||||
... AND click id=children6 #点击一级目录Settings
|
||||
|
||||
Reference in New Issue
Block a user