FYI, I am a developer not a tester. I need to do load testing on my ChatGPT. I have installed WebSocket Samplers by Peter Doornbosch. I have first created a thread group initially with number of users 1, ramp-up 1 sec, and loop count 1. Then I have added “WebSocket Open Connection” sampler and got the below response. I think the connection was done.
Now I have to ask my ChatGPT a question. So, I added “WebSocket Single Write” sampler with existing connection. I selected Data as Text and in the Request data I asked the question.
Now to get the response back from the ChatGPT I added “WebSocket Single Read” sampler with existing connection.
In the Listener’s View Results Tree, I did not get the complete response/answer from the ChatGPT. As you can see below {“status”:”streaming”,”content”:”I”} The content is “I” which is only one character. I should get the full response or paragraph to that question but not getting it neither I am getting error.
Please find below the sampler’s connection that I have added.
How should I get the full answer in the Response Body from my ChatGPT. I also need to perform load testing by increasing number of users with different prompts as well. Please guide me through this. Thanks in advance.