如何在 jmeter 中为 java 采样器请求生成多个登录用户

How to generate multiple login user in jmeter for java sampler request

我正在对同时使用 https 和 websocket 协议的游戏应用程序进行负载测试。

我曾使用 peter 的 web-socket 插件进行 ws connectio,但无法捕获和处理所有响应。

我有一个 web-socket 客户端连接 java 代码(自己的 websocket 实现)...如何与 jmeter 集成???

如果 java 采样器是一种方法...那么如何为 java 请求采样器传递多用户登录..

为了开发自己的Java Request sampler you need to inherit your class from AbstractJavaSamplerClient并实现SampleResult runTest(JavaSamplerContext context);功能

JavaSamplerContext in its turn provides getJMeterVariables() function which you can use for accessing JMeter Variables originating from i.e. CSV Data Set Config