GetServerSettingAsync.robot 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. *** Settings ***
  2. Documentation 客户端获取Server配置
  3. Suite Setup
  4. Resource ../../../CommonConfig/Config.robot
  5. Resource ../../../AllApi/ClientAPI/PersonalInformationApi/CommonLoginAsync.robot
  6. Resource ../../../AllApi/ClientAPI/OrganizationInformationApi/GetServerSettingAsync.robot
  7. *** Variables ***
  8. *** Test Cases ***
  9. Class_001_客户端获取Server配置
  10. [Template]
  11. #获取Token
  12. ${token} GetCommonLoginAsyncToken ${user_jo0221}[0] ${EMPTY} ${user_jo0221}[1] ${3} ${0}
  13. Log ${token}
  14. #获取机构配置信息
  15. ${res} GetServerSettingAsyncPost ${token}
  16. Log ${res}
  17. ${content} Get From Dictionary ${res} content
  18. #校验
  19. Should Not Be Empty ${content}
  20. Exception_001_客户端获取Server配置,Token非空校验
  21. [Template]
  22. #获取机构配置信息,Token传入空值
  23. ${res} GetServerSettingAsyncPost ${EMPTY}
  24. #校验
  25. ${flag} Result Analysis ${res} false ${1} Permission validation error
  26. Should Be True ${flag}
  27. Exception_002_客户端获取Server配置,Token正确性校验
  28. [Template]
  29. #获取机构配置信息,Token传入不正确的值
  30. ${res} GetServerSettingAsyncPost 111111
  31. #校验
  32. ${flag} Result Analysis ${res} false ${1} Permission validation error
  33. Should Be True ${flag}
  34. *** Keywords ***