SavePersonOrganizationAsync.robot 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. *** Settings ***
  2. Library CustomLibrary
  3. Resource ../../../Utils/HttpClient.robot
  4. Library String
  5. Resource ../../../CommonConfig/Config.robot
  6. *** Variables ***
  7. ${savePersonOrganizationAsyncUrl} IOrganizationService
  8. *** Keywords ***
  9. SavePersonOrganizationAsyncPost
  10. [Arguments] ${token} ${regionCode} ${parentCode} ${logoUrl} ${organizationCode} ${organizationName} ${patientType} ${isEncryptedShow} ${referralLimitHours} ${referralOrganizationCode}
  11. ${param} Create Dictionary
  12. Set To Dictionary ${param} Token ${token}
  13. Set To Dictionary ${param} RegionCode ${regionCode}
  14. Set To Dictionary ${param} ParentCode ${parentCode}
  15. Set To Dictionary ${param} LogoUrl ${logoUrl}
  16. Set To Dictionary ${param} OrganizationCode ${organizationCode}
  17. Set To Dictionary ${param} OrganizationName ${organizationName}
  18. Set To Dictionary ${param} PatientType ${patientType}
  19. Set To Dictionary ${param} IsEncryptedShow ${isEncryptedShow}
  20. Set To Dictionary ${param} ReferralLimitHours ${referralLimitHours}
  21. ${referralOrganizationCodes} Split String ${referralOrganizationCode} ,
  22. Set To Dictionary ${param} ReferralOrganizationCodes ${referralOrganizationCodes}
  23. ${body} Generate Params SavePersonOrganizationAsync ${param}
  24. Log ${param}
  25. Log ---开始断言验证---
  26. ${response} PostRequest ${host} ${savePersonOrganizationAsyncUrl} ${body}
  27. Log ${response}
  28. ${res} Response Analysis ${response}
  29. Log ${res}
  30. [Return] ${res}