补充提交
This commit is contained in:
@@ -6,15 +6,16 @@ Library RequestsLibrary
|
||||
|
||||
*** Keywords ***
|
||||
BasePostRequest
|
||||
[Arguments] ${apistr} ${body}
|
||||
[Arguments] ${apistr} ${body}
|
||||
Set Headers {"Authorization":"${token}","Content-Type":"application/json"}
|
||||
&{httpResponse} Post ${apistr} ${body}
|
||||
Output response body
|
||||
&{httpResponse} Post ${apistr} ${body}
|
||||
#Output response body
|
||||
Object response body
|
||||
#Integer $.code 200
|
||||
#Array $.data.policyList
|
||||
${response} Set Variable ${httpResponse.body}
|
||||
[Return] ${response}
|
||||
|
||||
BaseDeleteRequest
|
||||
[Arguments] ${requestUri} ${data}
|
||||
${headers} set variable {"Authorization":"${token}","Content-Type":"application/json"}
|
||||
|
||||
@@ -12,7 +12,7 @@ GetLogCondition
|
||||
Set Headers {"Content-Type":"application/x-www-form-urlencoded","Authorization":"${token}"}
|
||||
&{LogSchemaResponse}= GET /v1/log/schema?logType=${logname}
|
||||
log ${logname}
|
||||
Output Schema response body
|
||||
#Output Schema response body
|
||||
Object response body
|
||||
#Integer $.code 200
|
||||
log ${LogSchemaResponse.body['data']}
|
||||
|
||||
Reference in New Issue
Block a user