GetPositionsAsync.robot 1.1 KB

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