From 37771b14ece36519a777c4408a73bde4086f7c61 Mon Sep 17 00:00:00 2001 From: byb11 Date: Thu, 6 May 2021 10:35:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=8E=A5=E5=8F=A3=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tsg_bfapi/api_log/NewApiLogCase.robot | 2 + .../tsg_bfapi/api_log/VoIPRecordsCase.robot | 56 +++++++++++++++++++ .../ui_settings/zResponsepagesCase.robot | 4 +- 3 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 01-TestCase/tsg_bfapi/api_log/VoIPRecordsCase.robot diff --git a/01-TestCase/tsg_bfapi/api_log/NewApiLogCase.robot b/01-TestCase/tsg_bfapi/api_log/NewApiLogCase.robot index 8bfef63..5d002f6 100644 --- a/01-TestCase/tsg_bfapi/api_log/NewApiLogCase.robot +++ b/01-TestCase/tsg_bfapi/api_log/NewApiLogCase.robot @@ -254,6 +254,8 @@ TransactionRecordLogRetrievalConditionApiVerify ${Logurl} Set Variable http://${host}:${port}/v1/interface/gateway/sql/galaxy/log/filter/validation${urlpath} ${responsebody} distributed_query ${Logurl} ${token} log ${responsebody} + + diff --git a/01-TestCase/tsg_bfapi/api_log/VoIPRecordsCase.robot b/01-TestCase/tsg_bfapi/api_log/VoIPRecordsCase.robot new file mode 100644 index 0000000..727138a --- /dev/null +++ b/01-TestCase/tsg_bfapi/api_log/VoIPRecordsCase.robot @@ -0,0 +1,56 @@ +*** Settings *** +Force Tags tsg_adc_wp +Resource ../../../03-Variable/BifangApiVariable.txt +Library ../../../04-CustomLibrary/Custometest/Schema.py +Library ../../../04-CustomLibrary/Custometest/LogResponseVAL.py +Resource ../../../05-Other/AllFlowCaseVariable1.txt +Library json +Library OperatingSystem +Library Selenium2Library +Library RequestsLibrary +Library Collections +Library String + +*** Variables *** + +*** Test Cases *** + + +VoipRecordLogApiVerifyCase + [Documentation] voip_record_log纯接口测试用例 + ${Logurl} Set Variable http://${host}:${port}/v1/log/list + ${logType} Set Variable voip_record_log + ${Schemaurl} Set Variable http://${host}:${port}/v1/log/schema?logType=${logType} + ${EndTime1} Set Variable ${endtime} + ${StartTime1} Set Variable ${starttime} + logapiverify ${Logurl} ${Schemaurl} ${token} ${StartTime1} ${EndTime1} ${logType} + +VoipRecordLogCount + [Documentation] voip_record_log统计日志总数 + ${Logurl} Set Variable http://${host}:${port}/v1/log/count + ${logType} Set Variable voip_record_log + ${EndTime1} Set Variable ${endtime} + ${StartTime1} Set Variable ${starttime} + ${count} countlog_query ${Logurl} ${token} ${StartTime1} ${EndTime1} ${logType} + log ${count} + +VoipRecordLogExportLog + [Documentation] voip_record_log导出日志 + ${Logurl} Set Variable http://${host}:${port}/v1/log/batch + ${logType} Set Variable voip_record_log + ${Schemaurl} Set Variable http://${host}:${port}/v1/log/schema?logType=${logType} + ${EndTime1} Set Variable ${endtime} + ${StartTime1} Set Variable ${starttime} + ${filter} Set Variable common_client_ip = ${testClentIP} + exportlog ${Logurl} ${Schemaurl} ${token} ${StartTime1} ${EndTime1} ${logType} ${filter} + + +VoipRecordLogRetrievalConditionApiVerify + [Documentation] voip_record_log:日志检索条件校验(filter内容验证) + ${logType} Set Variable voip_record_log + ${filter} Set Variable common_client_ip = ${testClentIP} + ${urlpath} Set Variable ?logType=${logType}&filter=${filter} + ${Logurl} Set Variable http://${host}:${port}/v1/interface/gateway/sql/galaxy/log/filter/validation${urlpath} + ${responsebody} distributed_query ${Logurl} ${token} + log ${responsebody} + diff --git a/01-TestCase/tsg_ui/ui_settings/zResponsepagesCase.robot b/01-TestCase/tsg_ui/ui_settings/zResponsepagesCase.robot index d2343c7..40c4927 100644 --- a/01-TestCase/tsg_ui/ui_settings/zResponsepagesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/zResponsepagesCase.robot @@ -35,9 +35,9 @@ logtest ${EndTime1} Get Substring ${EndTime} \ -4 ${StartTime} add time to date ${EndTime} -03:00:00 ${StartTime1} Get Substring ${StartTime} \ -4 - ${filter} Set Variable common_log_id=239883677236457472 + ${filter} Set Variable common_log_id=241686735461177344 ${responsebody} loglistverify ${Logurl} ${Schemaurl} ${token} ${StartTime1} ${EndTime1} ${logType} ${filter} - ${targetdict} create list common_log_i + ${targetdict} create list common_log_id log ${responsebody} ${strlist} FieldValidation ${responsebody} ${targetdict} log ${strlist}