[英]How to generate multiple login user in jmeter for java sampler request
Iam doing load test for gaming application which uses both https and websocket protocol.我正在对使用 https 和 websocket 协议的游戏应用程序进行负载测试。
I had used web-socket plugin by peter for ws connectio, but unable capture and handle all response.我曾将 peter 的 web-socket 插件用于 ws 连接,但无法捕获和处理所有响应。
I have a web-socket client connection java code(own websocket implementation)... How to integrate with jmeter???我有一个 web-socket 客户端连接 java 代码(自己的 websocket 实现)...如何与 jmeter 集成???
If java sampler is a way to do it...then how to pass multiple user login for java request sampler..如果 java 采样器是一种方法......那么如何为 java 请求采样器传递多个用户登录..
In order to develop your own Java Request sampler you need to inherit your class from AbstractJavaSamplerClient and implement SampleResult runTest(JavaSamplerContext context);
为了开发您自己的Java 请求采样器,您需要从AbstractJavaSamplerClient继承您的类并实现SampleResult runTest(JavaSamplerContext context);
function功能
JavaSamplerContext in its turn provides getJMeterVariables() function which you can use for accessing JMeter Variables originating from ie CSV Data Set Config JavaSamplerContext反过来提供getJMeterVariables()函数,您可以使用该函数访问源自 IE CSV 数据集配置的JMeter 变量
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.