(九)Robot Framework之Post请求
Post 请求
1.&{headers 字典名} create dictionary
content-type=application/x-www-form-urlencoded
${响应结果} post request 会话名 /路径 data=${字典名}
headers=${headers 字典名}
必须将 content-type 存入 headers,有时候不加会出错
data 不能换成params
注:有时候存在用post或get发送请求没有数据
存在这种情况是使用的请求方式不对,所以要注意接口的请求方式是Get还是Post
金鳞岂是池中物,一遇风云便化龙。