From d400d20a9503a331ab8a901f644cd4dcc07e242b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=AC=E5=B7=8D=E5=B7=9D?= Date: Thu, 28 May 2020 14:38:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E4=B8=AD=E8=B6=8B=E5=8A=BF=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api_log/LogStatistics_Trend.robot | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 01-TestCase/tsg_bfapi/api_log/LogStatistics_Trend.robot diff --git a/01-TestCase/tsg_bfapi/api_log/LogStatistics_Trend.robot b/01-TestCase/tsg_bfapi/api_log/LogStatistics_Trend.robot new file mode 100644 index 0000000..5f472ed --- /dev/null +++ b/01-TestCase/tsg_bfapi/api_log/LogStatistics_Trend.robot @@ -0,0 +1,26 @@ +*** Settings *** +Resource ../../02-Keyword/tsg_bfapi/LogStatistics.robot + +*** Variables *** +${url} /report/policyevent/hit/trend + +*** Test Cases *** +LogStatistics-Trend-00001 + [Tags] security_event_hits_log类型正常输出 + Trend ${url} 2020-05-27 00:00:00 2020-05-27 15:00:00 security_event_hits_log 32601 + +LogStatistics-Trend-00002 + [Tags] proxy_event_hits_log类型正常输出 + Trend ${url} 2020-05-27 00:00:00 2020-05-27 17:00:00 proxy_event_hits_log 34358 + +LogStatistics-Trend-00003 + [Tags] 日志类型和policyId不一致 + Trend ${url} 2020-05-27 00:00:00 2020-05-27 15:00:00 proxy_event_hits_log 32601 + +LogStatistics-Trend-00004 + [Tags] policyId不在此时间段产生流量 + Trend ${url} 2020-05-27 00:00:00 2020-05-27 15:00:00 proxy_event_hits_log 34358 + +LogStatistics-Trend-00005 + [Tags] policyId不在此时间段产生流量 + Trend ${url} 2020-05-27 00:00:00 2020-05-27 15:00:00 security_event_hits_log 14385