// 应⽤场景: 针对于某个接⼝,如果有⼤量的测试数据需要批量验证,可以把测试数据保存到数据⽂件中,通过参数化 的⽅式来实现。
- 定义数据⽂件: CSV⽂件 or JSON⽂件 - 定义接⼝请求, 注意此时接⼝中的number的值不可写死, 应使⽤变量 - 在Tests中定义断⾔脚本 - 发送请求时选择数据⽂件 - 执⾏请求