How to correlate or handle dynamic value of websocket

28 views
Skip to first unread message

Piyush Patel

unread,
Jun 5, 2024, 2:37:35 AMJun 5
to JMeter Forum
Hi 

I am working on an application developed in Firebase SDK.

When we record the script in Jmeter for a specific scenario, getting this type of API'

1.https://www.googleapis.com:/XXXXX
2.https://firestore.googleapis.com:/XXXXXX
3.WebSocket Request/XXXXXX

All the dynamic values ​​come from the direct database like the entire query in the request payload.
All required payload comes in a WebSocket. How to correlate the dynamic value in WebSocket?

can someone please help?

DT

unread,
Jun 5, 2024, 10:04:56 AMJun 5
to JMeter Forum
There is JMeter WebSocket Samplers project which adds WebSockets protocol support to JMeter so you just need to send the same request as your browser (or another application) does and the "required payload" will be available as normal response data and you will be able to extract it fully or partially using suitable JMeter Post-Processors.

See JMeter WebSocket Samplers - A Practical Guide guide, it should help you to get started
Reply all
Reply to author
Forward
0 new messages