调整Log纯接口测试关键字及用例

This commit is contained in:
byb11
2021-05-08 14:42:29 +08:00
parent 3d8a75f8e5
commit f4e2eb0125
2 changed files with 40 additions and 46 deletions

View File

@@ -19,18 +19,15 @@ Library String
LogApiVerifyCase
[Documentation] 验证日志查询纯接口测试
${Logurl} Set Variable http://${host}:${port}/v1/log/list
${logTypelist} create list security_event_log proxy_event_log connection_record_log radius_record_log voip_record_log transaction_record_log live_session_record_log gtpc_record_log
${EndTime} get current date
${EndTime1} Get Substring ${EndTime} \ -4
${StartTime} add time to date ${EndTime} -01:00:00
${StartTime1} Get Substring ${StartTime} \ -4
logapiverify ${Logurl} ${token} ${StartTime1} ${EndTime1} ${host} ${port} ${logTypelist}
${logTypelist} Set Variable security_event_log proxy_event_log connection_record_log radius_record_log voip_record_log live_session_record_log transaction_record_log gtpc_record_log
${EndTime} get current date
${EndTime1} Get Substring ${EndTime} \ -4
${StartTime} add time to date ${EndTime} -01:00:00
${StartTime1} Get Substring ${StartTime} \ -4
FOR ${logType} in @{logTypelist}
${Schemaurl} Set Variable http://${host}:${port}/v1/log/schema?logType=${logType}
${a} logapiverify ${Schemaurl} ${Logurl} ${token} ${StartTime1} ${EndTime1} ${logType}
END
LogFieldVerifyCase
@@ -39,7 +36,7 @@ LogFieldVerifyCase
${logTypelist} create list security_event_log proxy_event_log connection_record_log radius_record_log voip_record_log live_session_record_log transaction_record_log gtpc_record_log
${EndTime} get current date
${EndTime1} Get Substring ${EndTime} \ -4
${StartTime} add time to date ${EndTime} -01:00:00
${StartTime} add time to date ${EndTime} -03:00:00
${StartTime1} Get Substring ${StartTime} \ -4
${filter} Set Variable
FOR ${logType} in @{logTypelist}
@@ -69,7 +66,7 @@ LogRetrieveVerifyCase
${logTypelist} create list security_event_log proxy_event_log connection_record_log radius_record_log voip_record_log live_session_record_log transaction_record_log gtpc_record_log
${EndTime} get current date
${EndTime1} Get Substring ${EndTime} \ -4
${StartTime} add time to date ${EndTime} -01:00:00
${StartTime} add time to date ${EndTime} -03:00:00
${StartTime1} Get Substring ${StartTime} \ -4
${filter} Set Variable
FOR ${logType} in @{logTypelist}