简体   繁体   English

启用“Transfer-Encoding:chunked”时,将响应与 JMeter 合并

[英]Combine response with JMeter when "Transfer-Encoding:chunked" is enabled

I'm writing a performance test script in JMeter, but the site uses "Transfer-Encoding: chunked".我正在 JMeter 中编写性能测试脚本,但该站点使用“Transfer-Encoding: chunked”。

Is it possible to receive and combine all responses with JMeter?是否可以使用 JMeter 接收和组合所有响应?

I tried "prev.getResponseData ();"我试过“prev.getResponseData();” in JSR223 PostProcessor, but it seems that I can only get the last response.在 JSR223 PostProcessor 中,但似乎我只能得到最后的响应。

JSR223 PostProcessor obeys JMeter Scoping Rules so it's just a matter of proper placement JSR223 PostProcessor遵守JMeter 范围规则,所以这只是适当放置的问题

在此处输入图像描述

As you can see如你看到的

  • JSR223 PostProcessor 1 is applied only to Sampler 1 JSR223 PostProcessor 1仅适用于Sampler 1
  • and JSR223 PostProcessor 2 is applied to all 3 Samplers JSR223 PostProcessor 2适用于所有 3 个采样器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM