JMeterPlugins (插件监听器)Flexible File Writer:这个插件允许你灵活记录测试结果
Filename:结果记录的地方
Overwirte existing file:是否覆盖这个文件
Write File Header:文件的头(即文件的第一行)
Record each sample:如何记录不同的sample(记录哪些内容,用什么顺序,如何隔开不同的值)
Write File Footer:文件的结尾(即文件的最后一行)
startTime | epoch time when request was started |
endTime | epoch time when reading response ended |
responseTime | response time, time to full response loaded |
latency | latency, time to first response byte received (if available) |
responseCode | response code (200, 404 etc.) |
responseMessage | response message (OK, Not Found etc.) |
responseHeaders | response headers (if present in sample) |
responseData | response data |
requestData | request data from sample |
sentBytes | number of request bytes sent, if available |
receivedBytes | number of request bytes sent (if available) |
threadName | name of thread in Thread Group that processed request |
sampleLabel | name of the sampler that made request |
isSuccsessful | is response was marked as successful |
isFailed | is response was marked as failed (surrogate field) |
startTimeMillis | same as startTime, but divided by 1000 (surrogate field, example: 1311121131.362) |
endTimeMillis | same as endTime, but divided by 1000 (surrogate field) |
responseTimeMicros | same as responseTime, but multiplied by 1000 (surrogate field) |
latencyMicros | same as latency, but multiplied by 1000 (surrogate field) |
variable#<N> | Sample variable with index N, see below for details |
示例:将回应数据写入到指定文件