AI智能
改变未来

data_login.json参数化json


data_login.json

[{\"case_name\":\"登录成功\",\"request_body\": {\"mobile\": \"13800000002\",\"password\": \"123456\"},\"success\": true,\"code\": 10000,\"message\":\"操作成功\",\"status_code\": 200},{\"case_name\":\"手机号码未注册\",\"request_body\": {\"mobile\": \"14000000002\",\"password\": \"123456\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"手机号码长度超过11位\",\"request_body\": {\"mobile\": \"14000000022102\",\"password\": \"123456\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"手机号码长度位数不够\",\"request_body\": {\"mobile\": \"122\",\"password\": \"123456\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"手机号码为空\",\"request_body\": {\"mobile\": \"\",\"password\": \"123456\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"密码错误\",\"request_body\": {\"mobile\": \"13800000002\",\"password\": \"error\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"密码长度不够\",\"request_body\": {\"mobile\": \"13800000002\",\"password\": \"1\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"密码中有特殊字符\",\"request_body\": {\"mobile\": \"13800000002\",\"password\": \"[!@#$%^&*()]\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"少参-缺少mobile\",\"request_body\": {\"password\": \"123456\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"少参-缺少password\",\"request_body\": {\"mobile\": \"13800000002\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"无参-传递大括号\",\"request_body\": {}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"无参-传递null\",\"request_body\": null, \"success\": false,\"code\": 99999,\"message\":\"抱歉,系统繁忙,请稍后重试\",\"status_code\": 200},{\"case_name\":\"错误参数\",\"request_body\": {\"mboile\": \"13800000002\",\"password\": \"123456\"}, \"success\": false,\"code\": 20001,\"message\":\"用户名或密码错误\",\"status_code\": 200},{\"case_name\":\"多参\",\"request_body\": {\"mobile\": \"13800000002\",\"password\": \"123456\",\"more\": \"111\"}, \"success\": true,\"code\": 10000,\"message\":\"操作成功\",\"status_code\": 200}]
赞(0) 打赏
未经允许不得转载:爱站程序员基地 » data_login.json参数化json