Postman接口性能测试
1、从文件中获取参数,然后点击Runner
2、勾选测试用例,配置用例次数、参数文件、返回data等
3、点击run 测试用例
4、查看测试结果
5、测试接口:https://www.apiopen.top/novelSearchApi?name=红楼梦
6、 校验测试结果
7、字符串检查代码
pm.test("检查结果", function () {
pm.expect(pm.response.text()).to.include(pm.variables.get("check"));
});