登录用例
Posted zhang-ping1205
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了登录用例相关的知识,希望对你有一定的参考价值。
id title method url request_data expected check_sql
1 登录成功 post /member/login {"mobile_phone":"#phone#","pwd":"12345567"} {"code":0,"msg":"OK"}
2 账号为10位 post /member/login {"mobile_phone":"1334881898","pwd":"12345567"} {"code": 2,"msg": "无效的手机格式",}
3 账号超出11位 post /member/login {"mobile_phone":"133488189821","pwd":"12345567"} {"code": 2,"msg": "无效的手机格式",}
4 账号为空 post /member/login {"mobile_phone":"","pwd":"12345567"} {"code": 1,"msg": "手机号码为空",}
5 账号包含非法字符 post /member/login {"mobile_phone":"1334881898二","pwd":"12345567"} {"code": 2,"msg": "无效的手机格式",}
6 密码错误 post /member/login {"mobile_phone":"13348818982","pwd":"123455678"} {"code": 1001,"msg": "账号信息错误",}
7 密码少于8位 post /member/login {"mobile_phone":"13348818982","pwd":"1234556"} {"code": 1001,"msg": "账号信息错误",}
8 密码为空 post /member/login {"mobile_phone":"13348818982","pwd":""} {"code": 1,"msg": "密码为空",}
9 密码中包含非法字符 post /member/login {"mobile_phone":"13348818982","pwd":"1234566七"} {"code": 1001,"msg": "账号信息错误",}
以上是关于登录用例的主要内容,如果未能解决你的问题,请参考以下文章