user14849417
user14849417

Reputation: 19

How to add parameters to Websocket requests in JMeter?

  1. How to add the below details to the WebSocket Open connection? (please check the links below)

  2. Is my understanding right - The details in the above Screenshots are to be added to WebSocket Open connection. Following which I can have WebSocket request-response Sampler using the same connection.

Upvotes: 0

Views: 530

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

    • Some headers like Sec-WebSocket-Key and Upgrade are being added by the Java code, you can take a look at WebSocketClient.java file to see which and how. For the others - WebSocket Samplers respect HTTP Header Manager

    • With regards to request parameters - just add them to the "Path" section

    enter image description here

  1. For the headers - they will be added as per Scoping Rules, for the Path - if you decide to use existing connection - it will be propagated

Upvotes: 1

Related Questions