日志统计用例完善
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
*** Settings ***
|
||||
Resource ../../../02-Keyword/tsg_bfapi/LogStatistics.robot
|
||||
Library DateTime
|
||||
|
||||
*** Test Cases ***
|
||||
LogStatistics-injectionstatistics-00001
|
||||
@@ -18,4 +19,93 @@ LogStatistics-injectionstatistics-00001
|
||||
${device_ids} set variable CBT2201925000001
|
||||
#统计时间粒度,单位秒,最小统计粒度为30秒
|
||||
${timeGranularity} set variable 30
|
||||
GetApi ${apiName} ${url} startTime=${startTime} endTime=${endTime} timeGranularity=${timeGranularity} limit=${limit} #device_ids=${device_ids}
|
||||
GetApi ${apiName} ${url} startTime=${startTime} endTime=${endTime} timeGranularity=${timeGranularity} limit=${limit} device_ids=${device_ids}
|
||||
|
||||
LogStatistics-injectionstatistics-00002
|
||||
#120未更新
|
||||
#apiName,请求大数据时,用于区分每个接口的sql
|
||||
${apiName} set variable injectionstatistics
|
||||
#请求地址 例如:/report/domain/recommend
|
||||
${url} set variable /report/traffic/injectionstatistics
|
||||
#结束时间格式Y-M-D h:i:s
|
||||
${Time} get current date
|
||||
${endTime}= add time to date ${Time} -00:05:00
|
||||
${endTime} Get Substring ${endTime} \ -4
|
||||
#开始时间格式Y-M-D h:i:s
|
||||
${startTime}= add time to date ${endTime}= -01:00:00
|
||||
${startTime} Get Substring ${startTime} \ -4
|
||||
#统计时间粒度,单位秒,最小统计粒度为30秒
|
||||
${timeGranularity} set variable 30
|
||||
GetApi ${apiName} ${url} startTime=${startTime} endTime=${endTime} timeGranularity=${timeGranularity}
|
||||
|
||||
LogStatistics-injectionstatistics-00003
|
||||
#120未更新
|
||||
#apiName,请求大数据时,用于区分每个接口的sql
|
||||
${apiName} set variable injectionstatistics
|
||||
#请求地址 例如:/report/domain/recommend
|
||||
${url} set variable /report/traffic/injectionstatistics
|
||||
#结束时间格式Y-M-D h:i:s
|
||||
${Time} get current date
|
||||
${endTime}= add time to date ${Time} -00:05:00
|
||||
${endTime} Get Substring ${endTime} \ -4
|
||||
#开始时间格式Y-M-D h:i:s
|
||||
${startTime}= add time to date ${endTime}= -1 days
|
||||
${startTime} Get Substring ${startTime} \ -4
|
||||
${device_ids} set variable CBT2201925000001
|
||||
#统计时间粒度,单位秒,最小统计粒度为30秒
|
||||
${timeGranularity} set variable 30
|
||||
GetApi ${apiName} ${url} startTime=${startTime} endTime=${endTime} timeGranularity=${timeGranularity}
|
||||
|
||||
LogStatistics-injectionstatistics-00004
|
||||
#120未更新
|
||||
#apiName,请求大数据时,用于区分每个接口的sql
|
||||
${apiName} set variable injectionstatistics
|
||||
#请求地址 例如:/report/domain/recommend
|
||||
${url} set variable /report/traffic/injectionstatistics
|
||||
#结束时间格式Y-M-D h:i:s
|
||||
${Time} get current date
|
||||
${endTime}= add time to date ${Time} -00:05:00
|
||||
${endTime} Get Substring ${endTime} \ -4
|
||||
#开始时间格式Y-M-D h:i:s
|
||||
${startTime}= add time to date ${endTime}= -7 days
|
||||
${startTime} Get Substring ${startTime} \ -4
|
||||
${device_ids} set variable CBT2201925000001
|
||||
#统计时间粒度,单位秒,最小统计粒度为30秒
|
||||
${timeGranularity} set variable 30
|
||||
GetApi ${apiName} ${url} startTime=${startTime} endTime=${endTime} timeGranularity=${timeGranularity}
|
||||
|
||||
LogStatistics-injectionstatistics-00005
|
||||
#120未更新
|
||||
#apiName,请求大数据时,用于区分每个接口的sql
|
||||
${apiName} set variable injectionstatistics
|
||||
#请求地址 例如:/report/domain/recommend
|
||||
${url} set variable /report/traffic/injectionstatistics
|
||||
#结束时间格式Y-M-D h:i:s
|
||||
${Time} get current date
|
||||
${endTime}= add time to date ${Time} -00:05:00
|
||||
${endTime} Get Substring ${endTime} \ -4
|
||||
#开始时间格式Y-M-D h:i:s
|
||||
${startTime}= add time to date ${endTime}= -30 days
|
||||
${startTime} Get Substring ${startTime} \ -4
|
||||
${device_ids} set variable CBT2201925000001
|
||||
#统计时间粒度,单位秒,最小统计粒度为30秒
|
||||
${timeGranularity} set variable 30
|
||||
GetApi ${apiName} ${url} startTime=${startTime} endTime=${endTime} timeGranularity=${timeGranularity}
|
||||
|
||||
LogStatistics-injectionstatistics-00006
|
||||
#120未更新
|
||||
#apiName,请求大数据时,用于区分每个接口的sql
|
||||
${apiName} set variable injectionstatistics
|
||||
#请求地址 例如:/report/domain/recommend
|
||||
${url} set variable /report/traffic/injectionstatistics
|
||||
#结束时间格式Y-M-D h:i:s
|
||||
${Time} get current date
|
||||
${endTime}= add time to date ${Time} -00:05:00
|
||||
${endTime} Get Substring ${endTime} \ -4
|
||||
#开始时间格式Y-M-D h:i:s
|
||||
${startTime}= add time to date ${endTime}= -365 days
|
||||
${startTime} Get Substring ${startTime} \ -4
|
||||
${device_ids} set variable CBT2201925000001
|
||||
#统计时间粒度,单位秒,最小统计粒度为30秒
|
||||
${timeGranularity} set variable 30
|
||||
GetApi ${apiName} ${url} startTime=${startTime} endTime=${endTime} timeGranularity=${timeGranularity}
|
||||
|
||||
Reference in New Issue
Block a user