操作步骤:

1、打开excel,将数据填写在excel表中,保存时选择CSV格式

postman使用CSV和Json文件实现批量接口测试

 

2、postman中添加需要测试的接口,注意body中的写入你的参数写法为name:{{name}},mobile:{{mobile}},括号中写的是你在excel中的名称

postman使用CSV和Json文件实现批量接口测试

3、在runner中的使用

postman使用CSV和Json文件实现批量接口测试

postman使用CSV和Json文件实现批量接口测试

直接点击页面底部的“run”运行即可

二、json文件的运行方式

新建一个文件,后缀名改为xxx.json,打开此文件,内容格式写法如下:

postman使用CSV和Json文件实现批量接口测试

运行与scv的方式一样

相关文章:

  • 2021-05-10
  • 2022-12-23
  • 2021-08-30
  • 2021-10-12
  • 2022-01-13
  • 2022-02-07
  • 2022-12-23
  • 2021-06-12
猜你喜欢
  • 2021-12-07
  • 2022-12-23
  • 2021-12-28
  • 2021-09-22
  • 2021-12-01
  • 2022-12-23
相关资源
相似解决方案