测试对象:
https请求方式: GET
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET
共有三个参数。接下来是设计接口测试用例
数据用例设计
新建一个excel文件,输入标题,三个参数和预期结果。然后将文件另存为csv文件

CSV数据文件设置
然后在配置原件里添加一个csv数据文件设置。输入文件地址和选择对应设置。

循环数据用例
将线程组循环次数设置为永远

参数化设置
将参数填入对应位置,这里必须与excel中参数名称保持一致

最后运行我们的脚本,就成功啦~