CreatePatientAsync.robot 949 B

12345678910111213141516171819202122232425
  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. CreatePatientAsyncPost
  10. [Arguments] ${token} ${patientData} ${assignmentUserCode}
  11. ${param} Create Dictionary
  12. Set To Dictionary ${param} Token ${token}
  13. Set To Dictionary ${param} PatientData ${patientData}
  14. ${assignmentUserCodes} Split String ${assignmentUserCode} ,
  15. Set To Dictionary ${param} AssignmentUserCodes ${assignmentUserCodes}
  16. ${body} Generate Params CreatePatientAsync ${param}
  17. Log ${param}
  18. Log ---开始断言验证---
  19. ${response} PostRequest ${host} ${url} ${body}
  20. Log ${response}
  21. ${res} Response Analysis ${response}
  22. Log ${res}
  23. [Return] ${res}