feat:(日志服务)支持日志总数查询
This commit is contained in:
@@ -22,7 +22,7 @@ GetLogSchema
|
||||
${schema_type} Get From Dictionary ${resData['doc']} schema_type
|
||||
${default_columns} Get From Dictionary ${resData['doc']} default_columns
|
||||
[Return] ${schema_query} ${schema_type} ${default_columns} ${resData['fields']}
|
||||
QueryLogList
|
||||
QueryLogs
|
||||
[Documentation]
|
||||
... 日志列表查询
|
||||
... params字典列表
|
||||
@@ -31,7 +31,7 @@ QueryLogList
|
||||
... fields=name1|type,name2|type
|
||||
... conditions=field1|type|symbol|value1^value2,field2|type|symbol|value3^value4
|
||||
... value1^value2是使用^分隔的字符串解析后为[value1,value2]格式的数组
|
||||
[Arguments] ${params}
|
||||
[Arguments] ${params} ${path}
|
||||
Should Not Be Empty ${params}
|
||||
${return} ${pageSize} Run Keyword And Ignore Error Get From Dictionary ${params} pageSize
|
||||
Run Keyword If "${return}"=="PASS" and "${pageSize}"=="${EMPTY}" Remove From Dictionary ${params} pageSize
|
||||
@@ -42,14 +42,16 @@ QueryLogList
|
||||
#处理排序
|
||||
${return} ${orderBy} Run Keyword And Ignore Error Get From Dictionary ${params} orderBy
|
||||
${orderBy} Run Keyword If "${return}"=="FAIL" or "${orderBy}"=="${EMPTY}" Create List
|
||||
... ELSE ManageOrderBy ${orderBy}
|
||||
Set To Dictionary ${params} orderBy=${orderBy}
|
||||
|
||||
${fields} Get From Dictionary ${params} fields
|
||||
Should Not Be Empty ${fields}
|
||||
${fields} ManageFields ${fields}
|
||||
Set To Dictionary ${params} fields=${fields}
|
||||
|
||||
... ELSE IF "${path}"=="list" ManageOrderBy ${orderBy} ELSE IF "${path}"=="count"
|
||||
... Set Variable ${orderBy}
|
||||
Run Keyword If "${path}"=="list" Set To Dictionary ${params} orderBy=${orderBy}
|
||||
Run Keyword If "${path}"=="count" Remove From Dictionary ${params} orderBy
|
||||
${return} ${fields} Run Keyword And Ignore Error Get From Dictionary ${params} fields
|
||||
Run Keyword If "${path}"=="list" Should Not Be Empty ${fields}
|
||||
${fields} Run Keyword If "${path}"=="list" ManageFields ${fields}
|
||||
... ELSE Create List
|
||||
Run Keyword If "${path}"=="list" Set To Dictionary ${params} fields=${fields}
|
||||
Run Keyword If "${path}"=="count" Remove From Dictionary ${params} fields
|
||||
${start_common_recv_time} Get From Dictionary ${params} start_common_recv_time
|
||||
Should Not Be Empty ${start_common_recv_time}
|
||||
${end_common_recv_time} Get From Dictionary ${params} end_common_recv_time
|
||||
@@ -62,7 +64,7 @@ QueryLogList
|
||||
... ELSE Create List
|
||||
Set To Dictionary ${params} conditions=${conditions}
|
||||
${bodyJson} json.Dumps ${params} ensure_ascii=False
|
||||
${response} BasePostRequestForV2 ${logUrl}/list ${bodyJson} ${version}
|
||||
${response} BasePostRequestForV2 ${logUrl}/${path} ${bodyJson} ${version}
|
||||
${rescode} Set Variable ${response['code']}
|
||||
Should Be Equal As Integers ${rescode} 200
|
||||
${resData} Set Variable ${response['data']}
|
||||
|
||||
Reference in New Issue
Block a user