# 正式环境测试文档 ## 接口测试 ### 黑点库鉴权接口 - 正常测试用例 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_abc", "fromSystem": "test", "system": "heidianku" } ``` - 异常测试用例 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_hengshui", "fromSystem": "test", "system": "heidianku" } ``` ### 流程鉴权 - 正常测试用例 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_hengshui", "fromSystem": "test", "system": "liucheng" } ``` - 异常测试用例 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_hengshui2", "fromSystem": "test", "system": "liucheng" } ``` ### 大屏鉴权 - 正常测试用例 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_abc", "fromSystem": "test", "system": "daping" } ``` - 异常测试用例 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_hengshui", "fromSystem": "test", "system": "daping" } ``` ### 投诉分析鉴权 - 正常测试用例 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_hengshui", "fromSystem": "test", "system": "fenxi" } ``` - 异常测试用例 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_hengshui2", "fromSystem": "test", "system": "fenxi" } ``` ### 投诉预测鉴权 - 正常常测试用例 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_abc", "fromSystem": "test", "system": "yuce" } ``` - 异常测试用例--用户存在但无相应权限返回用户不存在 ```http POST http://133.96.94.176:12128/api/verification Content-Type: application/json { "token": "test_token_hengshui", "fromSystem": "test", "system": "yuce" } ``` ### 角色列表接口 ```http POST http://133.96.94.176:12128/rest/flow/api Content-Type: application/json { "callType": "findRoleList", "userName": "王" } ``` ### 用户列表接口 ```http POST http://133.96.94.176:12128/rest/flow/api Content-Type: application/json { "callType": "findToPage" } ``` ### 根据登录账号获取用户 ```http POST http://133.96.94.176:12128/rest/flow/api Content-Type: application/json { "callType": "getByLoginId", "loginId": "test_handan" } ``` ### 根据用户ID获取用户接口 ```http POST http://133.96.94.176:12128/rest/flow/api Content-Type: application/json { "callType": "get", "userId": "33" } ``` ### 根据用户id获取角色id列表 ```http POST http://133.96.94.176:12128/rest/flow/api Content-Type: application/json { "callType": "findRoleIdByUserId", "userId": "33" } ``` ### 根据角色id获取用户id列表 ```http POST http://133.96.94.176:12128/rest/flow/api Content-Type: application/json { "callType": "findUserIdByRoleId", "roleId": "3" } ``` ### 多条件搜索用户 ```http POST http://133.96.94.176:12128/rest/flow/api Content-Type: application/json { "callType": "findAuthorizedUser", "userId": "33" } ``` - 根据用户查找角色+城市信息 ```http POST http://133.96.94.176:12128/rest/flow/api Content-Type: application/json { "callType": "getRoleCityByUserId", "userId": "13" } ``` ### 用户树形结构接口 ```http POST http://133.96.94.176:12128/rest/flow/api/userTree Content-Type: application/json { "city": 130200, "role": [6], "user": [] } ``` ### 根据roleID/cityId返回用户手机号列表 - 正常测试用例 ```http POST http://133.96.94.176:12128/rest/flow/api/getPhoneListByRole Content-Type: application/json { "cityId": 131100, "roleId": 5 } ``` - 异常测试用例1--输入错误--返回错误信息 ```http POST http://133.96.94.176:12128/rest/flow/api/getPhoneListByRole Content-Type: application/json { "cityId": 131200, "roleId": "abc" } ``` - 异常测试用例2--输入参数缺失--返回空列表 ```http POST http://133.96.94.176:12128/rest/flow/api/getPhoneListByRole Content-Type: application/json { "cityId": 130100 } ```