FindPatientsAsync.robot 1.1 KB

12345678910111213141516171819202122232425262728
  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. FindPatientsAsyncPost
  10. [Arguments] ${token} ${pageIndex} ${pageSize} ${keyWord} ${startTime} ${endTime} ${isValid}
  11. ${param} Create Dictionary
  12. Set To Dictionary ${param} Token ${token}
  13. Set To Dictionary ${param} PageIndex ${pageIndex}
  14. Set To Dictionary ${param} PageSize ${pageSize}
  15. Set To Dictionary ${param} KeyWord ${keyWord}
  16. Set To Dictionary ${param} StartTime ${startTime}
  17. Set To Dictionary ${param} EndTime ${endTime}
  18. Set To Dictionary ${param} IsValid ${isValid}
  19. ${body} Generate Params FindPatientsAsync ${param}
  20. Log ${param}
  21. Log ---开始断言验证---
  22. ${response} PostRequest ${host} ${url} ${body}
  23. Log ${response}
  24. ${res} Response Analysis ${response}
  25. Log ${res}
  26. [Return] ${res}