GetPersonOrganizationAsync.robot 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. *** Settings ***
  2. Documentation 客户端-查询机构详细信息 根据 机构编码
  3. Resource ../../../CommonConfig/Config.robot
  4. Resource ../../../AllApi/ClientAPI/PersonalInformationApi/CommonLoginAsync.robot
  5. Resource ../../../AllApi/ClientAPI/OrganizationInformationApi/GetPersonOrganizationAsync.robot
  6. Resource ../../../AllApi/ClientAPI/PersonalInformationApi/CommonSignUpAsync.robot
  7. *** Variables ***
  8. *** Test Cases ***
  9. Class_001_查询机构详细信息
  10. [Setup]
  11. [Template]
  12. #登录,获取用户Token
  13. ${token} GetCommonLoginAsyncToken ${user_mao}[0] ${EMPTY} ${user_mao}[1] ${3} ${0}
  14. #查询机构详细信息
  15. ${res} GetPersonOrganizationAsyncPost ${token}
  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. Exception_001_查询机构详细信息,用户未完善个人信息
  21. [Setup]
  22. [Template]
  23. #注册一个新账号
  24. ${username} Random Characters
  25. ${res} CommonSignUpAsyncPost ${username} ${EMPTY} ${pass1}
  26. Log ${res}
  27. ${flag} Result Analysis ${res} True ${EMPTY} ${EMPTY}
  28. Should Be True ${flag}
  29. #登录,获取用户Token
  30. ${token} GetCommonLoginAsyncToken ${username} ${EMPTY} ${pass1} ${3} ${0}
  31. #查询机构详细信息
  32. ${res} GetPersonOrganizationAsyncPost ${token}
  33. #返回error信息校验
  34. ${flag} Result Analysis ${res} false ${6014} Organization Code Empty error
  35. Should Be True ${flag}
  36. Exception_002_查询机构详细信息,token非空检验
  37. [Setup]
  38. [Template]
  39. #查询机构详细信息
  40. ${res} GetPersonOrganizationAsyncPost ${EMPTY}
  41. #返回error信息校验
  42. ${flag} Result Analysis ${res} false ${1} Permission validation error
  43. Should Be True ${flag}
  44. Exception_003_查询机构详细信息,token正确性检验
  45. [Setup]
  46. [Template]
  47. #查询机构详细信息
  48. ${res} GetPersonOrganizationAsyncPost 11111
  49. #返回error信息校验
  50. ${flag} Result Analysis ${res} false ${1} Permission validation error
  51. Should Be True ${flag}
  52. *** Keywords ***