Running jmeter to load test vaadin 13 application being return session expired meta

sel*_*sel 5 jmeter load-testing vaadin10

I am trying to run jmeter to load test vaadin13 application following the article here How to perform an Load Test/Performance Test with Vaadin 10 (is it possible with Jmeter?) which is absolutely very helpful. However, i encounter being return for(;;);[{"meta":{"sessionExpired":true}}] for every request which i am clueless.

I check that Vaadin-Security-Key is extracted correctly. Check the request data csrfToken, node is replaced with the value correctly. I am clueless on what i am missing here. Would like to seek advice what else i am missing. Thanks in advance.

在此处输入图片说明

Isk*_*ske 0

您发送的请求负载(数据)是 JSON。我猜您尚未在请求中设置Content-Type标头,并且 Vaadin 无法读取您发送的有效负载,因此无法读取验证会话所需的csrfToken 。

您可以使用HTTP 标头管理器 组件设置标头。如果所有请求都发送 json 数据,您可以在线程组级别添加此组件,如果只有某些请求需要它,您可以将其添加到特定的 HTTP Sampler...

对于 json 类型的请求,content-type header 的值应该是application/json;字符集=UTF-8

我希望这能解决您面临的问题......