我正在努力让我的机器人框架代码正常工作。我正在尝试创建一个到我的终点的post请求,名为finance/uploadPayments
此端点包含三个关键值:
下面是我的机器人框架钥匙:
Process payment
Create Session Alias ${API_URL}
${file_data} Get Binary File ../tests/data/positive/rca_load_77773_2021-01-10_0953.csv
${data}= Create Dictionary username=NicoleS delimiter=pipe
${header}= create dictionary Accept=text/plain Content-Type=application/x-www-form-urlencoded
Set to Dictionary ${data}
${files} Create Dictionary files=${file_data}
Set to Dictionary ${files}
Log ${files}
Log ${data}
${resp} RequestsLibrary.Post Request ALias finance/uploadPayments files=${files} data=${data}
headers=${header}
Log ${resp}
Should Be Equal As Strings ${resp.status_code} 200
标题:
我使用Python成功地实现了这一点
相关问题 更多 >
编程相关推荐