写入文件代码:
import org.apache.jmeter.services.FileServer;
import org.json.JSONObject;
//写入文件
//本地存储文件路径
File file=new File(“D:/jmeter/username.csv”);
FileWriter fw=new FileWriter(file,true);
BufferedWriter out=new BufferedWriter(fw);
out.write(“KaTeX parse error: Expected group after '_' at position 2: {_̲_V(empno_{__counter(true,)},)}”);
out.write(“,”);
out.write(“KaTeX parse error: Expected group after '_' at position 2: {_̲_V(username_{__counter(true,)},)}”);//提取出来的score
out.write(System.getProperty(“line.separator”));//换行
out.close();
fw.close();
file.close();
问题疑问:目前在结果树中确定是提取了两个值,