GetRegionsAsync.robot 743 B

123456789101112131415161718192021
  1. *** Settings ***
  2. Library CustomLibrary
  3. Resource ../../../Utils/HttpClient.robot
  4. Resource ../../../CommonConfig/Config.robot
  5. *** Variables ***
  6. ${getRegionsAsyncUrl} IRegionService
  7. *** Keywords ***
  8. GetRegionsAsyncPost
  9. [Arguments] ${version} ${languageType}
  10. ${param} Create Dictionary
  11. Set To Dictionary ${param} Version ${version}
  12. Set To Dictionary ${param} LanguageType ${languageType}
  13. ${body} Generate Params GetRegionsAsync ${param}
  14. Log ${body}
  15. Log ---开始断言验证---
  16. ${response} PostRequest ${host} ${getRegionsAsyncUrl} ${body}
  17. ${res} Response Analysis ${response}
  18. Log ${res}
  19. [Return] ${res}