0
votes

I'm doing load testing using JMeter for my gaming application.

First I log in my application by HTTP request and then enter into the game(it is a WebSocket connection).

I successfully hit Websocket and able to send the request and receive a response. Iam using WebSocket Samplers by Peter Doornbosch.WebSocket request-response Sampler captures one response at a time.

But in my application for a single request five JSON response is returned by the server. I need to capture those five responses. so I used WebSocket read sampler.

If I hit that WebSocket by increasing thread count most of the test cases are failed because of timer issue.

Jmeter sends the next request without waiting for previous reponse.

In my application, if one game ends, then the response is sent by the server. After receiving that only next game request must hit.

But the next game request hit the server before the current game ends. can please help me to sort this issue????

1
Any answer regarding this question????????Amu

1 Answers

0
votes

Put your WebSocket read sampler under the While Controller and specify the condition for exiting the while loop (it might be something coming from the JSON Extractor)

Jmeter sends the next request without waiting for previous reponse.

this statement is not true, each thread (virtual user) waits for the current sampler to finish before starting the next sampler