*** Settings *** Force Tags tsg-ui settings Packet Capture Resource ../../../03-Variable/bifangapivariable.txt Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot Library OperatingSystem *** Test Cases *** PacketCaptureCreateAddressTypeIPV4 [Tag] Positive UI IPV4 Settings PacketCapture CreatePacketCapture PacketCaptureCreateAddressTypeIPV4 IPV4 ${testClentIP} TCP Nur-sultan 10 10 80 1.1.1.1 8080 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateAddressTypeIPV6 [Tag] Positive UI IPV6 Settings PacketCapture CreatePacketCapture PacketCaptureCreateAddressTypeIPV6 IPV6 fe80::3cf8:a41c:122a:b3bd TCP Aktau 10 10 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateProtocolUDP [Tag] Positive UI UDP Settings PacketCapture CreatePacketCapture PacketCaptureCreateProtocolUDP IPV4 ${testClentIP} UDP Aktubinsk 10 10 80 1.1.1.1 8080 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateProtocolAny [Tag] Positive UI UDP Settings PacketCapture CreatePacketCapture PacketCaptureCreateProtocolUDP IPV4 ${testClentIP} Any Almaty 10 10 80 1.1.1.1 8080 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateIPInterval [Tag] Positive UI UDP Settings PacketCapture CreatePacketCapture PacketCaptureCreateProtocolUDP IPV4 192.168.50.1-192.168.50.62 Any Almaty 10 10 80 1.1.1.1 8080 ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[7]/div/div/div/p/span Should Be Equal As Strings ${text} 192.168.50.1-192.168.50.62 sleep ${sleep_min} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureEdit [Tag] Positive UI Settings PacketCapture 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 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureSearchID [Tag] Positive UI Settings PacketCapture CreatePacketCapture PacketCaptureSearchID IPV4 ${testClentIP} TCP Kostanay 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 OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert Settings-Search ${id} id sleep ${sleep_min} ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div Should Be Equal As Strings ${id} ${text} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureSearchName [Tag] Positive UI Settings PacketCapture CreatePacketCapture PacketCaptureSearchName IPV4 ${testClentIP} TCP Kostanay 10 10 80 1.1.1.1 8080 OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert Settings-Search PacketCaptureSearchName name sleep ${sleep_min} ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div/div Should Be Equal As Strings PacketCaptureSearchName ${text} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureSearchIP [Tag] Positive UI Settings PacketCapture CreatePacketCapture PacketCaptureSearchName IPV4 ${testClentIP} TCP Kostanay 10 10 80 1.1.1.1 8080 OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert Settings-Search ${testClentIP} ip sleep ${sleep_min} ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[7]/div/div/div Should Be Equal As Strings ${testClentIP} ${text} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureSearchPort [Tag] Positive UI Settings PacketCapture CreatePacketCapture PacketCaptureSearchName IPV4 ${testClentIP} TCP Kostanay 10 10 80 1.1.1.1 8080 OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert Settings-Search 80 port sleep ${sleep_min} ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[8]/div/div/div Should Be Equal As Strings 80-80 ${text} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureSearchisValid_Effective [Tag] Positive UI Settings PacketCapture CreatePacketCapture PacketCaptureSearchName IPV4 ${testClentIP} TCP Kostanay 10 10 80 1.1.1.1 8080 OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert PacketCaptureSerch Effective sleep ${sleep_min} ${text} Get Element Attribute xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/div/span/i[2] style Should Be Equal As Strings color: rgb(232, 123, 108); font-size: 16px; ${text} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureSearchisValid_Invalid [Tag] Positive UI Settings PacketCapture OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert PacketCaptureSerch Invalid sleep ${sleep_min} ${text} Get Element Attribute xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/div/span/i[1] style Should Be Equal As Strings font-size: 16px; color: rgb(50, 115, 156); ${text} PacketCaptureShutDownButton [Tag] Positive UI Settings PacketCapture CreatePacketCapture PacketCaptureSearchName IPV4 ${testClentIP} TCP Kostanay 10 10 80 1.1.1.1 8080 click xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/div/span sleep 3 ${text} Get Element Attribute xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/div/span/i[1] style Should Be Equal As Strings font-size: 16px; color: rgb(50, 115, 156); ${text} click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureDeletePacket [Tag] Positive UI Settings PacketCapture CreatePacketCapture PacketCaptureSearchName IPV4 ${testClentIP} TCP Kostanay 10 10 80 1.1.1.1 8080 click xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/div/span sleep 3 click id=packetList_del sleep ${sleep_min} click xpath=/html/body/div/div/div[3]/button[2] sleep ${sleep_min} ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[2]/td/div/div[2] Should Be Equal As Strings ${text} No Data click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateNameMinSize [Tag] Boundary UI IPV4 Settings PacketCapture CreatePacketCapture 1 IPV4 ${testClentIP} TCP Kyzylorda 10 10 80 1.1.1.1 8080 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateNameMaxSize [Tag] Boundary UI IPV4 Settings PacketCapture CreatePacketCapture PacketCaptureCreateNameMaxSizePacketCaptureCreateNameMaxSizePacketCaptureCreateNameMaxSizePacketCaptureCreateNameMaxSizePacketCa IPV4 ${testClentIP} TCP Pavlodar 10 10 80 1.1.1.1 8080 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateNameSpecialChar [Tag] Boundary UI IPV4 Settings PacketCapture CreatePacketCapture 中文+absc+моряков+@#¥%……&* IPV4 ${testClentIP} TCP Semey 10 10 80 1.1.1.1 8080 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreatePortMinSize [Tag] Boundary UI Settings PacketCapture CreatePacketCapture 中文+absc+моряков+@#¥%……&* IPV4 ${testClentIP} TCP Shymkent 10 10 1 1.1.1.1 1 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreatePortMaxSize [Tag] Boundary UI Settings PacketCapture CreatePacketCapture 中文+absc+моряков+@#¥%……&* IPV4 ${testClentIP} TCP Taldykurgan 10 10 65535 1.1.1.1 65535 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateCapturedNumberAndDurationMinSize [Tag] Boundary UI Settings PacketCapture CreatePacketCapture PacketCaptureCreateCapturedNumberAndDurationMinSize IPV4 ${testClentIP} TCP Taraz 1 0 65535 1.1.1.1 65535 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateCapturedNumberAndDurationMaxSize [Tag] Boundary UI Settings PacketCapture CreatePacketCapture PacketCaptureCreateCapturedNumberAndDurationMinSize IPV4 ${testClentIP} TCP Taraz 100000 596523 65535 1.1.1.1 65535 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture PacketCaptureCreateALLNull [Tag] Negtive UI Settings PacketCapture OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert click id=packet_create sleep ${sleep_min} click id=packetCaptureAdd_ok sleep ${sleep_min} ${text1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[1]/div/div[3] ${text2} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[9]/div/div[2] ${text3} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[10]/div/div[2] Should Be Equal As Strings ${text1} Please enter the content Should Be Equal As Strings ${text2} Please enter the content Should Be Equal As Strings ${text3} Please enter the content PacketCaptureCreateIPFormat [Tag] Negtive UI Settings PacketCapture OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert click id=packet_create sleep ${sleep_min} input id=PacketCaptureadd_cliIp fe80::3cf8:a41c:122a:b3 sleep ${sleep_min} click id=packetCaptureAdd_ok sleep ${sleep_min} ${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[3]/div/div[2] Should Be Equal As Strings ${text} IP format error PacketCaptureCreatePortFormatError [Tag] Negtive UI Settings PacketCapture OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert click id=packet_create sleep ${sleep_min} input id=PacketCaptureadd_cliPort 0 input id=PacketCaptureadd_serPort 65536 click id=packetCaptureAdd_ok sleep ${sleep_min} ${text1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[4]/div/div[2] ${text2} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[6]/div/div[2] Should Be Equal As Strings ${text1} Port format error Should Be Equal As Strings ${text1} Port format error PacketCaptureCreateTwoEffectiveDeviceso [Tag] Negtive UI Settings PacketCapture OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert click id=packet_create sleep ${sleep_min} click id=PacketCaptureadd_EDevice sleep ${sleep_min} click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[1]/div[1]/label/span/span sleep ${sleep_min} click xpath=//*[@id="policy_Manipulation_create4"]/div/div[2]/div/div/div/div[1]/div/div/div[2]/div[1]/label/span/span sleep ${sleep_min} click id=proxyManipulationConditionsAreaSuccess sleep ${sleep_min} ${text} get text xpath=/html/body/div[last()]/p click id=proxyManipulationConditionsAreaCancel Should Be Equal As Strings ${text} Only one valid device can be selected PacketCaptureCreateCapturedNumberFormatError [Tag] Negtive UI Settings PacketCapture OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert click id=packet_create sleep ${sleep_min} input id=PacketCaptureadd_MaxPacketCapNum 0 click id=PacketCaptureadd_cliPort sleep ${sleep_min} ${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[9]/div/div[2] Should Be Equal As Strings ${text} maxPacket should be greater than 0 and less than 100000 PacketCaptureCreateCapturedDurationFormatError [Tag] Negtive UI Settings PacketCapture OpenPages sidebarTrouble_shooting Proxy_Profiles_Profile_Insert click id=packet_create sleep ${sleep_min} input id=PacketCaptureadd_pcapStorageDay 596524 click id=PacketCaptureadd_cliPort sleep ${sleep_min} ${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[10]/div/div[2] Should Be Equal As Strings ${text} The maximum value of capture duration is 596523 and can only be integers