标签:close get rev 测试 csharp highlight port leo response
测试接口,涉及文件下载,想查看下载文件
1.添加文档下载接口HTTP请求
2.配置HTTP信息头管理器
3.添加BeanShell断言,配置导出信息
import java.io.*; byte[] result = prev.getResponseData(); String file_name = "E:/JMeter/test/testfile.xlsx"; File file = new File(file_name); FileOutputStream out = new FileOutputStream(file); out.write(result); out.close();
执行任务,文件下载到本地
标签:close get rev 测试 csharp highlight port leo response
原文地址:https://www.cnblogs.com/87060524test/p/11018488.html