Hi,
I am trying to implement WebSocket communication in my test script. The connection is getting established, but I am not getting the response from the server while OnMessageCB is called.
Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it!  Learn more
Hi,
I am trying to implement WebSocket communication in my test script. The connection is getting established, but I am not getting the response from the server while OnMessageCB is called.
Try to enable full logging (all options), see Run Time Settings and examine the flow.
Note that in rare cases you need to set manual cookies. Cookies are received from a server and automatically added to a client request by LR.
Reward contributions via likes or 'verified answers'
Hi JHF,
Thank you for replying. The WebSocket connection is getting established, and I am getting the connection ID. OnMessageCB is working. Expectation is --
1.User clicks on the search link.
2.The search api is invoked and receives 504 Gateway Timeout error. As the data which needs to be fetched is large.
3.WebSocket will send a message containing AWS S3 url which will be invoked by the browser and the searched data will be received.
This another message I am not receiving, actually OnMssageCB is not getting called. If something is needed to be done in the script?