在进行API测试时,我们经常需要反复执行某些测试步骤,以验证API在不同数据和条件下的表现。
例如,我们可以通过一个用户列表接口获取一批邮箱和密码,然后使用这些邮箱和密码批量测试登录接口是否正常工作。
准备工作
首先我们准备2个API
1.用户列表接口
https://echo.apipost.cn/userlist.php
该接口返回的内容如下:
{"data": {"errcode": 0,"errstr": "success","list": [{"email": "test01@apipost.cn","password": "123456"},{"email": "test02@apipost.cn","password": "123456"},{"email": "test03@apipost.cn","password": "123456"},{"email": "test04@apipost.

最低0.47元/天 解锁文章
767

被折叠的 条评论
为什么被折叠?



