Unanswered question

Enabling delay element allow request to pass on Check User Path

Hello,

I am working with load testing for an app that uses WebSocket server at the moment. When I recording scenarios and paths, there will be delay element add to my scenarios by the program. When I check the user paths they will fail. But when I enable or set the delay time as 0 the paths will pass.

I am not sure if that suppose to be anything related to WebSocket technology itself or the program. And how would I suppose to add delay time for my script?

Hope someone can help me with this.

Cheers,
Chirapapan

Chirapapan P.
Chirapapan P.

Chirapapan P.

Level
0
87 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Delays are automatically added by NeoLoad during the recording so the script is executed as a "real user" with some pauses. And when you execute the check virtual user those delays are applied unless you have enable the option "Consider as think time" for those delays.

Anyway usually that does not impact the replaying of your script but it might be the case with WebSocket are involved. It's difficult to be 100% sure without seeing your script.

Chirapapan P.
Chirapapan P.

Chirapapan P.

Level
0
87 / 100
points

Thank for your answer.

I am not sure if it would help seeing my script since it is just a recorded of list or user paths. This script I already remove most of Delay (Which is how I find out that it would make the Check pass). And you can see that when I add the first delay than it would make the rest of the request fail.

Let me know if you want to see anything else to help me.

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

The WebSocket requests are executed sequentially and i do not why the delay would be an issue unless the content of the WebSocket that fails depends on something.

On which request do you get the error and what is the detail of the error?

Chirapapan P.
Chirapapan P.

Chirapapan P.

Level
0
87 / 100
points

The errors are from requests below the delay time. I attached 2 pictures of the same script where one has delay time and another does not have the delay time. You can see that the one without the delay time all path would pass. The error that I got is
"Error Code: NL-WEBSOCKET-REQUEST-ENGINE
Message: An internal error occurred while processing the WebSocket request.
Details: Connection output is closed"

It is true that delay time should not be an issue. So, now I doubt how valid is the Check User Validity?