工作中需要写入token,data值到文件中
需要写入 正则。否则不传
后置处理器
FileWriter fstream = new FileWriter("D:\\daliandata0220.txt",true);
//这里结尾的true表示续写,即数据每次写入都在最末行续上;默认值为false:每次跑这个脚本都会覆盖原有内容再写入
BufferedWriter out = new BufferedWriter(fstream);
//out.write(vars.get("__UUID")+"\n");
out.write ("token"+":"+ vars.get("token") + "," + "data" + ":"+ vars.get("data")+"\n");
out.close();
fstream.close();
写入在数据对比: