SetValidPatientAsync.robot 963 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. SetValidPatientAsyncPost
  10. [Arguments] ${token} ${newPatientCode} ${oldPatientCode} ${isFinishExam}
  11. ${param} Create Dictionary
  12. Set To Dictionary ${param} Token ${token}
  13. Set To Dictionary ${param} NewPatientCode ${newPatientCode}
  14. Set To Dictionary ${param} OldPatientCode ${oldPatientCode}
  15. Set To Dictionary ${param} IsFinishExam ${isFinishExam}
  16. ${body} Generate Params SetValidPatientAsync ${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}