配置http request–配置好下载接口
配置BeanShell ProProcessor
import java.io.*;
import java.util.UUID;
//获取上个请求的返回数据
byte[] result = prev.getResponseData();
//要下载到什么地方
UUID uuid = UUID.randomUUID();
String str = uuid.toString();
String file_name = "/Users/amanda/Downloads/"+str+".apk";
File file = new File(file_name);
FileOutputStream out = new FileOutputStream(file);
out.write(result);
out.close();