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/api_log/VoIPRecordsCase.robot

57 lines
2.5 KiB
Plaintext
Raw Normal View History

2021-05-06 10:35:13 +08:00
*** 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}