统计日志自动化代码
This commit is contained in:
19
01-TestCase/tsg_bfapi/api_log/LogStatistics-topn.robot
Normal file
19
01-TestCase/tsg_bfapi/api_log/LogStatistics-topn.robot
Normal file
@@ -0,0 +1,19 @@
|
||||
*** Settings ***
|
||||
Resource ../../../02-Keyword/tsg_bfapi/LogStatistics.robot
|
||||
|
||||
*** Test Cases ***
|
||||
LogStatistics-topn-00001
|
||||
#131已通过
|
||||
#apiName,请求大数据时,用于区分每个接口的sql
|
||||
${apiName} set variable topn
|
||||
#请求地址 例如:/report/domain/recommend
|
||||
${url} set variable /report/traffic/topn/domain
|
||||
#开始时间格式Y-M-D h:i:s
|
||||
${startTime} set variable 2020-04-26 18:38:07
|
||||
#结束时间格式Y-M-D h:i:s
|
||||
${endTime} set variable 2020-05-26 18:38:20
|
||||
#排序依据: \ sessions、bytes、packets
|
||||
${orderBy} set variable sessions
|
||||
#limit int型
|
||||
${limit} set variable 50
|
||||
GetApi ${apiName} ${url} startTime=${startTime} endTime=${endTime} orderBy=${orderBy} limit=${limit}
|
||||
Reference in New Issue
Block a user