1、添加BeanShell PostProcessor
2、添加如下代码
import java.io.*;
byte[] result = prev.getResponseData();
String fileName="C:\\Users\\admin\\Desktop\\export_file.xlsx";
File file = new File(fileName);
FileOutputStream out = new FileOutputStream(file);
out.write(result);
out.close();
#jmeter测试导出