GetOrganizationByCodeAsync.robot 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. *** Settings ***
  2. Documentation 客户端-根据编号获取机构信息
  3. Suite Setup
  4. Resource ../../../CommonConfig/Config.robot
  5. Resource ../../../AllApi/ClientAPI/PersonalInformationApi/CommonLoginAsync.robot
  6. Resource ../../../AllApi/ClientAPI/OrganizationInformationApi/GetOrganizationByCodeAsync.robot
  7. *** Variables ***
  8. *** Test Cases ***
  9. Class_001_根据编号获取机构信息
  10. [Template]
  11. #登录,获取用户Token
  12. ${token} GetCommonLoginAsyncToken ${user_mao}[0] ${EMPTY} ${user_mao}[1] ${3} ${0}
  13. #根据编号获取机构信息
  14. ${res} GetOrganizationByCodeAsyncPost ${token} ${organizationInfo_mao}[0]
  15. Log ${res}
  16. #校验
  17. ${content} Get From Dictionary ${res} content
  18. ${organizationCode} Get From Dictionary ${content} OrganizationCode
  19. Should Be Equal As Strings ${organizationCode} ${organizationInfo_mao}[0]
  20. Class_002_根据编号获取机构信息,填写不存在组织编码
  21. [Template]
  22. #登录,获取用户Token
  23. ${token} GetCommonLoginAsyncToken ${user_mao}[0] ${EMPTY} ${user_mao}[1] ${3} ${0}
  24. #根据编号获取机构信息
  25. ${res} GetOrganizationByCodeAsyncPost ${token} 111111
  26. Log ${res}
  27. #校验
  28. ${content} Get From Dictionary ${res} content
  29. Should Be Empty ${content}
  30. Exception_001_根据编号获取机构信息,OrganizationCode非空校验
  31. [Template]
  32. #登录,获取用户Token
  33. ${token} GetCommonLoginAsyncToken ${user_mao}[0] ${EMPTY} ${user_mao}[1] ${3} ${0}
  34. #根据编号获取机构信息
  35. ${res} GetOrganizationByCodeAsyncPost ${token} ${EMPTY}
  36. Log ${res}
  37. #校验
  38. ${content} Get From Dictionary ${res} content
  39. Should Be Empty ${content}
  40. Exception_002_根据编号获取机构信息, Token非空校验
  41. [Template]
  42. #根据编号获取机构信息
  43. ${res} GetOrganizationByCodeAsyncPost ${EMPTY} ${organizationInfo_mao}[0]
  44. Log ${res}
  45. #返回error信息校验
  46. ${flag} Result Analysis ${res} false ${1} Permission validation error
  47. Should Be True ${flag}
  48. Exception_003_根据编号获取机构信息, Token正确性检验
  49. [Template]
  50. #根据编号获取机构信息
  51. ${res} GetOrganizationByCodeAsyncPost 11111 ${organizationInfo_mao}[0]
  52. Log ${res}
  53. #返回error信息校验
  54. ${flag} Result Analysis ${res} false ${1} Permission validation error
  55. Should Be True ${flag}
  56. *** Keywords ***