1 前端页面发起请求
(测试时接口参数写死了,参数data=1,请求h5自动化测试结果的全部数据)

2 在urls中配置请求的的路由信息
(^h5/resulth5 请求的是getH5testResult()接口)

3 getH5testResult()查询数据库(H5test),向前端返回数据


4 数据库中的数据是由h5自动化项目中(jenkins)的接口向其中增添

5 查找urls中路由test/h5调用的接口

6 h5auto()向数据库H5test中写入测试结果


1 前端页面发起请求
(测试时接口参数写死了,参数data=1,请求h5自动化测试结果的全部数据)
2 在urls中配置请求的的路由信息
(^h5/resulth5 请求的是getH5testResult()接口)
3 getH5testResult()查询数据库(H5test),向前端返回数据
4 数据库中的数据是由h5自动化项目中(jenkins)的接口向其中增添
5 查找urls中路由test/h5调用的接口
6 h5auto()向数据库H5test中写入测试结果
本文标题:后端接口编写流程
本文链接:https://www.haomeiwen.com/subject/sgebhxtx.html
网友评论