RemovePatientsAsync.robot 831 B

123456789101112131415161718192021222324
  1. *** Settings ***
  2. Library CustomLibrary
  3. Resource ../../../Utils/HttpClient.robot
  4. Library String
  5. Resource ../../../CommonConfig/Config.robot
  6. *** Variables ***
  7. ${url} IPatientService
  8. *** Keywords ***
  9. RemovePatientsAsyncPost
  10. [Arguments] ${token} ${patientCode}
  11. ${param} Create Dictionary
  12. Set To Dictionary ${param} Token ${token}
  13. ${patientCodes} Split String ${patientCode} ,
  14. Set To Dictionary ${param} PatientCodes ${patientCodes}
  15. ${body} Generate Params RemovePatientsAsync ${param}
  16. Log ${param}
  17. Log ---开始断言验证---
  18. ${response} PostRequest ${host} ${url} ${body}
  19. Log ${response}
  20. ${res} Response Analysis ${response}
  21. Log ${res}
  22. [Return] ${res}