Jmeter用beanshell将相应中的参数写入到本地文件中

 

https://blog.csdn.net/jianglianye21/article/details/83504046
https://www.geek-share.com/detail/2764656029.html
https://www.cnblogs.com/Zfc-Cjk/p/10842307.html

  

FileWriter fstream = new FileWriter("/Users/kk999/Desktop/token.csv",true);//定义本地文件路径
BufferedWriter out = new BufferedWriter(fstream);
out.write("${access_token}");//写入token
out.write(","); //换列
out.write("${phone}");//写入手机号
out.write(System.getProperty("line.separator"));//换行
out.close();
fstream.close();

  

Jmeter用beanshell将相应中的参数写入到本地文件中

上一篇:tomcat在linux上的安装


下一篇:sublime Text *(Mac)安装与汉化