UpdatePatientAsync.robot 1013 B

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