Csv file fetch data from a request parameter, and returns the data into a csv file

Originally wanted token after landing in an array, with the next parameter, but seemingly does not support arrays, the first time being so used, not trouble, very convenient.

1, after the addition of the necessary thread group and the like stuff added csv configurator

image

2, set

image

Description: csv file settings can not read the specified line, can only turn to take down, so think how much to take, how much fill or on the number of threads with cycle controller

3, extracted token:

image

4, the token written to the file

Adding a post-processing program:

image

code show as below:

FileWriter fstream = new FileWriter("文件路径/token.csv",true);
BufferedWriter out = new BufferedWriter(fstream);
out.write("${token}");
out.write(","); // #添加列
out.write("${address}");
out.write(System.getProperty("line.separator")); //换行
out.close();
fstream.close();

Note: do not build the file in advance, do not have the same name file under the same path

Guess you like

Origin www.cnblogs.com/mealwaysme/p/jmeter.html