Robot Framework 对Post接口加header和传参

Post接口传入header:

Name:
Create Session
Source:
RequestsLibrary
Arguments:
[ alias | url | headers={} | cookies=None | auth=None | timeout=None | proxies=None | verify=False | debug=0 | max_retries=3 | backoff_factor=0.1 | disable_warnings=0 ]

Create_Session    json    ${link}    ${headers}

 

因为header

先创建传参格式:${headers}    Create_Dictionary    Content-Type=application/json    Http-Rpc-Type=JsonContent

 

你可能感兴趣的:(Robot,Framework)