提交Dashboard与report对比关键字和部分case

This commit is contained in:
lyf
2020-08-21 20:02:54 +08:00
parent c217cc0847
commit bd84392ba4
5 changed files with 763 additions and 129 deletions

View File

@@ -4,6 +4,14 @@ 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 ***
@@ -14,7 +22,91 @@ Trafffics-001
#结束时间
${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