使用robotFramwork工具写上传文件接口,抓包工具抓包如截图所示:
传入的头部文件格式是Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
我们使用requests.post请求,用Catenate拼接路径
${file_path} Catenate SEPARATOR= ${CURDIR} ${file_path}
使用robotFramwork工具写上传文件接口,抓包工具抓包如截图所示:
传入的头部文件格式是Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
我们使用requests.post请求,用Catenate拼接路径
${file_path} Catenate SEPARATOR= ${CURDIR} ${file_path}