21 lines
848 B
Plaintext
21 lines
848 B
Plaintext
*** Settings ***
|
|
Library json
|
|
Library OperatingSystem
|
|
Library Selenium2Library
|
|
Library RequestsLibrary
|
|
Library Collections
|
|
Resource ../tsg_bfapi/ApiRequest.robot
|
|
Resource Log_schema.robot
|
|
Resource ../tsg_bfapi/Common.robot
|
|
|
|
*** Keywords ***
|
|
log_search
|
|
[Arguments] ${start-time} ${end-time} ${type} ${filds} ${conditions}
|
|
log 111111${filds}
|
|
${filedsJson} json.dumps ${filds}
|
|
${requestbody} Set Variable {"start_common_recv_time":"${start-time}","end_common_recv_time":"${end-time}","logType":"${type}","fields":${filedsJson},"conditions":${conditions},"refuseCode":true}
|
|
log %%%%%%%%%%${requestbody}
|
|
${response} BasePostRequest v1/log/list ${requestbody}
|
|
log ${response}
|
|
[Return] ${response}
|