上传修改的预统计接口的关键字和case,以及自定义库GetTimeLibrary
This commit is contained in:
@@ -10,14 +10,10 @@ Dashboard-Traffic-bytes
|
||||
# Traffics-带宽统计 统计类型:bytes bifang和bigData对比 Traffic IN/OUT
|
||||
[Documentation]
|
||||
... 描述:Traffic-Bytes统计
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... endtime(必传,结束时间
|
||||
... 返回:对比结果
|
||||
[Arguments] ${timeNum} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
[Arguments] ${starttime} ${endtime}
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&statisticsUnit=bytes
|
||||
${url1} Set Variable report/traffic/statisticsbyunit
|
||||
${bfResponse} TrafficBFRequest ${url1} ${data}
|
||||
@@ -37,14 +33,10 @@ Dashboard-Traffic-packets
|
||||
# Traffics-带宽统计 统计类型:packets bifang和bigData对比 Traffic IN/OUT
|
||||
[Documentation]
|
||||
... 描述:Traffic-packets统计
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... endtime(必传,结束时间
|
||||
... 返回:对比结果
|
||||
[Arguments] ${timeNum} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
[Arguments] ${starttime} ${endtime}
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&statisticsUnit=packets
|
||||
${url1} Set Variable report/traffic/statisticsbyunit
|
||||
${bfResponse} TrafficBFRequest ${url1} ${data}
|
||||
@@ -66,14 +58,11 @@ Dashboard-Traffic-sessions
|
||||
# Traffics-带宽统计 统计类型:sessions bifang和bigData对比 Traffic IN/OUT
|
||||
[Documentation]
|
||||
... 描述:Traffic-sessions统计
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... endtime(必传,结束时间
|
||||
... 返回:对比结果
|
||||
[Arguments] ${timeNum} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
[Arguments] ${starttime} ${endtime}
|
||||
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&statisticsUnit=sessions
|
||||
${url1} Set Variable report/traffic/statisticsbyunit
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -92,18 +81,13 @@ Dashboard-Traffic-trend-bytes
|
||||
# Traffics-带宽趋势 统计类型:bytes bifang和bigData对比 Traffic IN/OUT
|
||||
[Documentation]
|
||||
... 描述:Traffic-trend-bytes
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... endtime(必传,结束时间
|
||||
... timeGranularity(非必传,时间粒度 )
|
||||
... limit(非必传,限制条数)
|
||||
... 返回:对比结果
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
#${timeGranularity} Set Variable 60
|
||||
#${limit} Set Variable 5
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&statisticsUnit=bytes&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/traffic/statisticsbyunit
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -126,17 +110,13 @@ Dashboard-Traffic-trend-packets
|
||||
# Traffics-带宽趋势 统计类型:packets bifang和bigData对比 Traffic IN/OUT
|
||||
[Documentation]
|
||||
... 描述:Traffic-trend-packets
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... endtime(必传,结束时间
|
||||
... timeGranularity(非必传,时间粒度 )
|
||||
... limit(非必传,限制条数)
|
||||
... 返回:对比结果
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
#${timeGranularity} Set Variable 60
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&statisticsUnit=packets&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/traffic/statisticsbyunit
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -161,16 +141,11 @@ Dashboard-Traffic-trend-sessions
|
||||
# Traffics-带宽趋势 统计类型:sessions bifang和bigData对比 Traffic IN/OUT
|
||||
[Documentation]
|
||||
... 描述:Traffic-trend-sessions
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
#${timeGranularity} Set Variable 60
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... endtime(必传,结束时间
|
||||
... timeGranularity(非必传,时间粒度 )
|
||||
... limit(非必传,限制条数)
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&statisticsUnit=sessions&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/traffic/statisticsbyunit
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
|
||||
Reference in New Issue
Block a user