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/LogStatistics-topn.robot

21 lines
896 B
Plaintext
Raw Normal View History

2020-05-26 19:54:19 +08:00
*** Settings ***
Resource ../../../02-Keyword/tsg_bfapi/LogStatistics.robot
Resource ../../../03-Variable/BifangApiVariable.txt
2020-05-26 19:54:19 +08:00
*** Test Cases ***
LogStatistics-topn-00001
#131已通过
#apiName请求大数据时用于区分每个接口的sql
${apiName} set variable topn
#请求地址 例如:/${version}/report/domain/recommend
${url} set variable /${version}/report/traffic/topn/domain
2020-05-26 19:54:19 +08:00
#开始时间格式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}