利用BeanShell返回结果保存到csv文件代码 String strData=vars.get("ccc")+"\r\n"; FileWriter writer = new FileWriter("C:/Users/Administrator/Desktop/temp/ccc.csv",true); writer.write(strData); writer.flush(); writer.close(); log.info(strData);