Answered question

No traffic on the server from WebSocket requests when running my script

Hello,

I am new to load testing and Neoload. I have my script ready which are steps of WebSocket request. And I already use Check User Path to validate these request. However, when I run the script I ask the backend dev to check the traffic on the server, there is no traffic from running my script at all. I user development environment for this load test. And it is also impossible to see the responses while running the script to check if the request and response are working.

I hope someone can help me on this.

Cheers

Chirapapan P.
Chirapapan P.

Chirapapan P.

Level
0
87 / 100
points
Neil W.
Neil W.

Neil W.

Level
4
5000 / 5000
points
Team

Without seeing your project, I can only cover the theory here. I'm assuming your site downloads the JS for the browser to execute it locally and generate this HMAC value, which gets returned in a later request. You can copy this JS from the response and drop it into Neoloads JS with the necessary arguments, Neoload can then mimic what the browser would do, run the JS and generate the HMAC value

Did you find this useful ?

No (0)

Yes (1)

100%

100% of users found this answer useful

Other answers

Fousseyni B.
Fousseyni B.

Fousseyni B.

Level
2
1014 / 2000
points

Hello Chirapapan P.

Did you have some kind error message during User path validation ?

Best Regards,
Fousseyni B.

Chirapapan P.
Chirapapan P.

Chirapapan P.

Level
0
87 / 100
points

There is no error during User path validation. But, now I am investigating if it has to do anything with hmac.

Chirapapan P.
Chirapapan P.

Chirapapan P.

Level
0
87 / 100
points

Look like there is a problem with hmac key at connection request. So, how does Neoload support using of CryptoJS HMAC SHA256? I see that you have JS library and JS action, There is wildly use of CryptoJS on CDN but Neoload does not support it and have tried it and aslo answer from http://answers.neotys.com/questions/1785109-can-execute-document-createelement-document-body-apprendclid-js-library

Any recommendation?
Cheers