这份测试用例是针对“客户管理模块”所编写的,用于编写自动化接口代码时,可供读取的测试信息。
method | url | ParamsOrData | response |
post | http://127.0.0.1/api/mgr/signin | {"username": "byhy", "password": "88888888" } | {"ret": 0} |
post | http://127.0.0.1/api/mgr/signin | {"username": "hhhh", "password": "88888888" } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/signin | {"username": "byhy", "password": "00000000" } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/signin | {"username": "", "password": "88888888" } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/signin | {"username": "byhy", "password": "" } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/signin | {"username": "", "password": "" } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京协和医院0", "phonenumber": "14758532400", "address": "北京市丰汇园10号楼-0" } } | {"id": 126, "ret": 0} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "233333", "phonenumber": "14758532401", "address": "北京市丰汇园10号楼-1" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "%¥#", "phonenumber": "14758532402", "address": "北京市丰汇园10号楼-2" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京协和医院3", "phonenumber": "www5www", "address": "北京市丰汇园10号楼-3" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京协和医院4", "phonenumber": "%¥#", "address": "北京市丰汇园10号楼-4" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京协和医院5", "phonenumber": "14758532405", "address": "233333" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京协和医院6", "phonenumber": "14758532406", "address": "%¥#" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "零", "phonenumber": "14758532407", "address": "北京市丰汇园10号楼-7" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "零一", "phonenumber": "14758532408", "address": "北京市丰汇园10号楼-8" } } | {"ret": 0} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "零一二", "phonenumber": "14758532409", "address": "北京市丰汇园10号楼-9" } } | {"ret": 0} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "零一二三四五六七八九零一二三四五六七八", "phonenumber": "14758532410", "address": "北京市丰汇园10号楼-10" } } | {"ret": 0} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "零一二三四五六七八九零一二三四五六七八九", "phonenumber": "14758532411", "address": "北京市丰汇园10号楼-11" } } | {"ret": 0} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "零一二三四五六七八九零一二三四五六七八九零", "phonenumber": "14758532412", "address": "北京市丰汇园10号楼-12" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院13", "phonenumber": "0123456", "address": "北京市丰汇园10号楼-13" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院14", "phonenumber": "01234567", "address": "北京市丰汇园10号楼-14" } } | {"ret": 0} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院15", "phonenumber": "012345678", "address": "北京市丰汇园10号楼-15" } } | {"ret": 0} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院16", "phonenumber": "0123456789", "address": "北京市丰汇园10号楼-16" } } | {"ret": 0} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院17", "phonenumber": "01234567890", "address": "北京市丰汇园10号楼-17" } } | {"ret": 0} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院18", "phonenumber": "012345678901", "address": "北京市丰汇园10号楼-18" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院19", "phonenumber": "14758532419", "address": "北京市丰汇园10号楼-0" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院20", "phonenumber": "14758532400", "address": "北京市丰汇园10号楼-20" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院0", "phonenumber": "14758532421", "address": "北京市丰汇园10号楼-21" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院0", "phonenumber": "14758532400", "address": "北京市丰汇园10号楼-22" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院0", "phonenumber": "14758532400", "address": "北京市丰汇园10号楼-0" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院23", "phonenumber": "14758532423", "address": "" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "北京市协和医院24", "phonenumber": "", "address": "北京市丰汇园10号楼-24" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "", "phonenumber": "14758532425", "address": "北京市丰汇园10号楼-25" } } | {"ret": 1} |
post | http://127.0.0.1/api/mgr/customers | {"action": "add_customer", "data": { "name": "", "phonenumber": "", "address": "" } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"name": "北京协和医院000", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"phonenumber": "14758530000", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"address": "北京市丰汇园10号楼-000", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"name": "233333", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"name": "%¥#", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"phonenumber": "wwwewww", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"phonenumber": "%¥#", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"address": "6666666", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"address": "&%¥", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"name": "零", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"name": "零一", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"name": "零一二", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"name": "零一二三四五六七八九零一二三四五六七八", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"name": "零一二三四五六七八九零一二三四五六七八九", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"name": "零一二三四五六七八九零一二三四五六七八九零", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"phonenumber": "0123456", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"phonenumber": "01234567", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"phonenumber": "012345678", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"phonenumber": "0123456789", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"phonenumber": "01234567890", } } | {"ret": 0} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 335, "newdata":{"phonenumber": "012345678901", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 334, "newdata":{"address": "北京市丰汇园10号楼-0", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 334, "newdata":{"phonenumber": "14758532400 ", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 334, "newdata":{"name": "北京市协和医院0 ", } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 334, "newdata":{"name": "北京市协和医院“, "phonenumber": "14758532400 ", "address": "北京市丰汇园10号楼-0" } } | {"ret": 1} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 334, "newdata":{"address": "", } } | {"ret": 2} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 334, "newdata":{"phonenumber": "", } } | {"ret": 2} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 334, "newdata":{"name": "", } } | {"ret": 2} |
put | http://127.0.0.1/api/mgr/customers | {"action": "modify_customer", "id": 334, "newdata":{"name": "“, "phonenumber": "", "address": "" } } | {"ret": 2} |
delete | http://127.0.0.1/api/mgr/customers | {"action": "del_customer", "id": 336 } | {"ret": 0} |
delete | http://127.0.0.1/api/mgr/customers | {"action": "del_customer", "id": "" } | {"ret": 2} |
get | http://127.0.0.1/api/mgr/customers | {"action": "list_customer", "pagesize": 2, "pagenum": 1, "keywords": "" } | {"ret": 0} |
get | http://127.0.0.1/api/mgr/customers | {"action": "list_customer", "pagesize": "", "pagenum": 1, "keywords": "" } | {"ret": 2} |
get | http://127.0.0.1/api/mgr/customers | {"action": "list_customer", "pagesize": 2, "pagenum": "", "keywords": "" } | {"ret": 2} |
get | http://127.0.0.1/api/mgr/customers | {"action": "list_customer", "pagesize": "", "pagenum": "", "keywords": "" } | {"ret": 2} |