1 api文档
{
"collection": {
"version": "1.0",
"href": " http://127.0.0.1:8000/api/departments/",
"links": [],
"items": [{
"href": "/T01",
"data": {
"dep_id": "T01",
"dep_name": "Test学院",
"master_name": "Test-Master",
"slogan": "Here is Slogan"
},
"links": [{
"rel": "classes",
"href": "http://127.0.0.1:8000/api/departments/T01/classes/ ",
"prompt": "班级集合"
}]
}],
"templates": {
"data": [{
"dep_id": "T01",
"dep_name": "Test学院",
"master_name": "Test-Master",
"slogan": "Here is Slogan"
}]
},
"queries": [{
"rel": "search",
"href": " http://127.0.0.1:8000/api/departments/",
"prompt": "列表查询",
"data": [{
"name": "$dep_id_list",
"value": ""
}, {
"name": “$dep_name_list”,
"value": ""
}, {
"name": "$master_name_list",
"value": ""
}, {
"name": "$slogan_list",
"value": ""
}]
}, {
"rel": "condition",
"href": " http://127.0.0.1:8000/api/departments/",
"prompt": "条件查询(名称、简称)",
"data": [{
"name": " dep_name",
"value": ""
}, {
"name": " master_name",
"value": ""
}, {
"name": " slogan",
"value": ""
}]
}],
"error": {
"status_code": "",
"detail": ""
}
}
}
2 抽取接口清单
查询
新增
修改与删除
3与jmx同目录下建一个参数化文件
4接口用例设计
原则
查询所有与指定
组合查询
模糊查询
查询list
新增
逆向为空
特殊字符
超长字符
更新与新增类似
删除
参数化
查询指定
id_list
name_list
新增
更新uri必填,不校验
删除
utf-8吴BOM
来源:https://www.cnblogs.com/autointerface/p/12501524.html