#导入excel关键字
importUserList

[Arguments] ${param}


#${dic} Create Dictionary Content-Disposition=form-data; name="file"; filename="userlistimport.xls" Content-Type=application/vnd.ms-excel Content-Transfer-Encoding=binary

${deleteReq} post request IP:PORT /URL/url/importUserList files=${param} #headers=${header}

log ${deleteReq.content}

should be equal as strings ${deleteReq.status_code} 200
should be byte string ${deleteReq.content} 'success':true


#用例
*** Test Cases ***

#导入用户excel
importUserList
Get session

${files} evaluate {'file': ('report.xls', open(r'D:\\xxxx\\userlistimport.xls', 'rb'), 'application/vnd.ms-excel')}

importUserList ${files}

相关文章:

  • 2021-06-02
  • 2022-12-23
  • 2022-01-05
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案