Robot Framework 对Post接口加header和传参

Post接口传入header:

Name:
Create Session
Source:
RequestsLibrary <test library>
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

 


版权声明:本文为cuipan1234原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。