简体   繁体   中英

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.

I had used web-socket plugin by peter for ws connectio, but unable capture and handle all response.

I have a web-socket client connection java code(own websocket implementation)... How to integrate with jmeter???

If java sampler is a way to do it...then how to pass multiple user login for java request sampler..

In order to develop your own Java Request sampler you need to inherit your class from AbstractJavaSamplerClient and implement 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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