UpdatePositionNameAsync.robot 987 B

123456789101112131415161718192021222324
  1. *** Settings ***
  2. Library CustomLibrary
  3. Resource ../../../Utils/HttpClient.robot
  4. Library String
  5. Resource ../../../CommonConfig/Config.robot
  6. *** Variables ***
  7. ${updatePositionNameAsyncUrl} IPositionService
  8. *** Keywords ***
  9. UpdatePositionNameAsyncPost
  10. [Arguments] ${token} ${positionCode} ${positionName} ${fitDepartmentCode}
  11. ${param} Create Dictionary
  12. Set To Dictionary ${param} Token ${token}
  13. Set To Dictionary ${param} PositionCode ${positionCode}
  14. Set To Dictionary ${param} PositionName ${positionName}
  15. Set To Dictionary ${param} FitDepartmentCode ${fitDepartmentCode}
  16. ${body} Generate Params UpdatePositionNameAsync ${param}
  17. Log ${body}
  18. Log ---开始断言验证---
  19. ${response} PostRequest ${host} ${updatePositionNameAsyncUrl} ${body}
  20. ${res} Response Analysis ${response}
  21. Log ${res}
  22. [Return] ${res}