RemovePatientsAsync.robot 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. *** Settings ***
  2. Documentation 删除病人
  3. Library Collections
  4. Library HttpLibrary.HTTP
  5. Library RequestsLibrary
  6. *** Variables ***
  7. ${uri} /IPatientService
  8. ${method} RemovePatientsAsync
  9. *** Test Cases ***
  10. *** Keywords ***
  11. removePatientsAsync_Post
  12. [Arguments] ${token} ${code}
  13. ${param} Create Dictionary
  14. Set To Dictionary ${param} Token ${token}
  15. Set To Dictionary ${param} Code ${code}
  16. #list怎样拼接
  17. #${PatientCodes} Create List
  18. ${data} body_data_list ${method} ${param}
  19. Log ${data}
  20. Log ---开始断言验证---
  21. ${response} request_post ${URL} ${uri} ${data}
  22. #Log ${response}
  23. #log ${response.content}
  24. #${content} Set Variable ${response.content}
  25. #Log ---输出返回内容---:
  26. #Log Json ${content} INFO
  27. #Log ---开始断言验证---
  28. #Should Be True ${response.status_code}==200
  29. ${content} check_response ${response}
  30. [Return] ${content}