SetUserOrganizationInfoAsync.robot 1.3 KB

1234567891011121314151617181920212223242526272829
  1. *** Settings ***
  2. Library CustomLibrary
  3. Resource ../../../Utils/HttpClient.robot
  4. Library String
  5. Resource ../../../CommonConfig/Config.robot
  6. *** Variables ***
  7. ${setUserOrganizationInfoAsyncUrl} IUserService
  8. *** Keywords ***
  9. SetUserOrganizationInfoAsyncPost
  10. [Arguments] ${token} ${userCode} ${roleCode} ${rankCode} ${positionCode} ${organizationCode}
  11. ${param} Create Dictionary
  12. Set To Dictionary ${param} Token ${token}
  13. Set To Dictionary ${param} UserCode ${userCode}
  14. ${roleCodes} Split String ${roleCode} ,
  15. Set To Dictionary ${param} RoleCodes ${roleCodes}
  16. ${rankCodes} Split String ${rankCode} ,
  17. Set To Dictionary ${param} RankCodes ${rankCodes}
  18. ${positionCodes} Split String ${positionCode} ,
  19. Set To Dictionary ${param} PositionCodes ${positionCodes}
  20. Set To Dictionary ${param} OrganizationCode ${organizationCode}
  21. ${body} Generate Params SetUserOrganizationInfoAsync ${param}
  22. Log ${body}
  23. Log ---开始断言验证---
  24. ${response} PostRequest ${host} ${setUserOrganizationInfoAsyncUrl} ${body}
  25. ${res} Response Analysis ${response}
  26. Log ${res}
  27. [Return] ${res}