summaryrefslogtreecommitdiff
path: root/01-TestCase/tsg_ui/ui_settings/SSLDecryptionExclusionCase.robot
blob: cfc4f5da0fd9d723495ea6854962a09f7dbed357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
*** Settings ***
Force Tags        tsg-ui    settings    SSL Decryption Exclusion
Resource          ../../../03-Variable/bifangapivariable.txt
Resource          ../../../02-Keyword/tsg_ui/setting/Settings.robot
Library           OperatingSystem

*** Test Cases ***
SSLDecryptionExclusionCreateExactlyMatching
    [Tags]    Positive    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusion    $www.jianshu.com    jianshu    www.jianshu.com     name
    click    xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
    Deletessl_del

SSLDecryptionExclusionCreateSuffixMatching
    [Tags]    Positive    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusion    *myssl.com    myssl.com    myssl.com     name
    click    xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 
    Deletessl_del  

SSLDecryptionExclusionEditSearchID
    [Tags]    Positive    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusion    *myssl.com    myssl.com    myssl.com     name
    ${id}    get text    xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/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

SSLDecryptionExclusionEditSearchName
    [Tags]    Positive    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusion    *myssl.com    myssl.com    myssl.com     name
    EditSSLDecryptionExclusion    myssl.com    $www.jianshu.com    简xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/spanxpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span书         www.jianshu.com    name
    click    xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 
    Deletessl_del
    
SSLDecryptionExclusionEditDefault
    [Tags]    Positive    UI    Settings    SSLDecryptionExclusion
    OpenPages    VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_SSL
    EditSSLDecryptionExclusion    1    *fe3.delivery.mp.microsoft.com    test11    *fe3.delivery.mp.microsoft.com    id
    EditSSLDecryptionExclusion    1    *fe3.delivery.mp.microsoft.com    Mircosoft Store    *fe3.delivery.mp.microsoft.com    id
      
SSLDecryptionCreateFQDNMinSize
    [Tags]    Boundary    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusion    *abc    abc    abc     name
    click    xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 
    Deletessl_del
    
SSLDecryptionCreateFQDNMaxSize
    [Tags]    Boundary    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusion    *CreateSSLDecryptionFQDNMaxSizeCreateSSLDecryptionFQDNMaSizetest    CreateSSLDecryptionFQDNMaxSizeCreateSSLDecryptionFQDNMaSizetest    CreateSSLDecryptionFQDNMaxSizeCreateSSLDecryptionFQDNMaSizetest     name
    click    xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 
    Deletessl_del
    
SSLDecryptionExclusionFQDNThreeCharacters
    [Tags]    Negtive    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusionErrorVerification    *te    test    //*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[3]/form/div[1]/div/div[3]    The length of the name is at most 128 characters and cannot be less than 4 characters

SSLDecryptionExclusionFQDN65Characters
    [Tags]    Negtive    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusionErrorVerification    *SSLDecryptionExclusionFQDNThreeCharactersSSLDecryptionExclusioti    test    /html/body/div[last()]/p    Each lable of domain may contain 1 to 63 characters.

SSLDecryptionExclusionFQDNNot*$Beginning
    [Tags]    Negtive    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusionErrorVerification    www.baidu.com    test    /html/body/div[last()]/p    Suffix matching and exactly matching only.
    
SSLDecryptionExclusionFQDNSpecialChar
    [Tags]    Negtive    UI    Settings    SSLDecryptionExclusion
    CreateSSLDecryptionExclusionErrorVerification    *!@#$%^&*(-/-*+    test    /html/body/div[last()]/p    Invalid domain, acceptable characters are a-z, 0-9, '-', '.' and '_'.

SSLDecryptionExclusionNullDescriptionAndFQDN
    [Tags]    Negtive    UI    Settings    SSLDecryptionExclusion
    OpenPages    VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_SSL
    click    id=ssl_create
    sleep     ${sleep_min}
    click    id=ssl_ok 
    sleep    ${sleep_min}
    Page Should Contain    The length of the name is at most 128 characters and cannot be less than 4 characters
    Page Should Contain    Please enter the content