zl程序教程

您现在的位置是:首页 >  其他

当前栏目

RobotFramework: 接口测试时,注意请求体content-type

测试接口 请求 type 注意 content robotframework
2023-09-11 14:21:03 时间

使用Post Request关键字时

1、如果请求体的content-type为:application/x-www-form-urlencoded,则传参数时需要给params参数赋值

2、如果content-type为application/json,则给data赋值