This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_bfapi/dashboard_data_compare_new_case/TrafficStatistics.robot

113 lines
3.5 KiB
Plaintext
Raw Normal View History

*** Settings ***
Force Tags tsg-bfapi dashboard traffic
Library Collections
Resource ../../../03-Variable/BifangApiVariable.txt
Resource ../../../02-Keyword/tsg_bfapi/dashboard_keywords/TrafficStatistics.robot
Library GetTimeLibrary
Library REST
Resource ../../../02-Keyword/tsg_bfapi/dashboard_data_compare/PolicyActionHitStatistics.robot
*** Test Cases ***
Trafffics-001
# Traffics-带宽统计 统计类型bytes packets sessions bifang和report对比
#开始时间
${starttime} time1 30s
#结束时间
${endtime} time1 s
Dashboard-Traffic-new ${startTime} ${endTime} lyf-trafffics-001
NewLive-002
#开始时间
${starttime} time1 5m
#结束时间
${endtime} time1 m
Dashboard-Traffic-new ${startTime} ${endTime} NewLive-002
SecurityEventActionHit-003
# dashboard界面 安全策略默认动作命中计数 bifang和report对比
#开始时间
#结束时间格式Y-M-D h:i:s
${Time} get current date
${endTime}= add time to date ${Time} -00:05:00
${endTime} Get Substring ${endTime} \ -4
${startTime}= add time to date ${endTime}= -01:00:00
${startTime} Get Substring ${startTime} \ -4
SecurityEventActionHit-new ${startTime} ${endTime} 300 5 SecurityEventActionHit-003 1
ClientIPTopN-new-004
#开始时间
${starttime} time1 5m
#结束时间
${endtime} time1 m
#dashboard 源IP统计 bifang和report对比
ClientIPTopN-new ${starttime} ${endtime} sessions 10 ClientIPTopN-new-004 sessions
ServiceIPTopN-new-005
#开始时间
${starttime} time1 5m
#结束时间
${endtime} time1 m
#dashboard 源IP统计 bifang和report对比
ServiceIPTopN-new ${starttime} ${endtime} sessions 10 ServiceIPTopN-new-005 sessions
SecurityEventpolicyidtopHit-new-006
#开始时间
${starttime} time1 5m
#结束时间
${endtime} time1 m
#dashboard 源IP统计 bifang和report对比
SecurityEventpolicyidtopHit-new ${starttime} ${endtime} 10 SecurityEventpolicyidtopHit-006
SubscriberIDTopN-new-007
#开始时间
${starttime} time1 5m
#结束时间
${endtime} time1 m
#dashboard 源IP统计 bifang和report对比
SubscriberIDTopN-new ${starttime} ${endtime} sessions 10 SubscriberIDTopN-new-007 sessions
DomainsTopN-new-008
#开始时间
${starttime} time1 5m
#结束时间
${endtime} time1 m
#dashboard 源IP统计 bifang和report对比
DomainsTopN-new ${starttime} ${endtime} sessions 10 DomainsTopN-new-008 sessions
ProxyEventActionHit-009
#开始时间
${starttime} time1 5m
#结束时间
${endtime} time1 m
#dashboard 源IP统计 bifang和report对比
ProxyEventActionHit-new ${starttime} ${endtime} 300 5 Proxy Event allow
ProxyPolicytopHit-new-010
#开始时间
${starttime} time1 5m
#结束时间
${endtime} time1 m
#dashboard 源IP统计 bifang和report对比
ProxyPolicytopHit-new ${starttime} ${endtime} 10 Proxy Event-2