GetAllRanksAsync.robot 1002 B

1234567891011121314151617181920212223242526
  1. *** Settings ***
  2. Library CustomLibrary
  3. Resource ../../../Utils/HttpClient.robot
  4. Library String
  5. Resource ../../../CommonConfig/Config.robot
  6. *** Variables ***
  7. ${getAllRanksAsyncUrl} IRankService
  8. *** Keywords ***
  9. GetAllRanksAsyncPost
  10. [Arguments] ${token} ${rankCode} ${organizationCode}
  11. ${param} Create Dictionary
  12. Set To Dictionary ${param} Token ${token}
  13. ${rankCodes} Split String ${rankCode} ,
  14. Set To Dictionary ${param} RankCodes ${rankCodes}
  15. ${organizationCodes} Split String ${organizationCode} ,
  16. Set To Dictionary ${param} OrganizationCodes ${organizationCodes}
  17. ${body} Generate Params GetAllRanksAsync ${param}
  18. Log ${param}
  19. Log ---开始断言验证---
  20. ${response} PostRequest ${host} ${getAllRanksAsyncUrl} ${body}
  21. Log ${response}
  22. ${res} Response Analysis ${response}
  23. Log ${res}
  24. [Return] ${res}