Tetsing socket.io with gatling

172 views
Skip to first unread message

Павел Безпалько

unread,
Sep 9, 2020, 3:54:06 AM9/9/20
to Gatling User Group
Hey. I am writing a load testing socket.io for our server. I have one problem: gatling creates one session for all users. How to create a separate session for each user? Thank you

Stéphane LANDELLE

unread,
Sep 9, 2020, 8:25:37 AM9/9/20
to gat...@googlegroups.com
Your problem is not Gatling itself. It's your own code.
You create a global single socket:

You should try creating sockets in exec blocks and store them into the virtual users' Sessions.


Logo Stéphane Landelle
Chief Technical Officer
twitter: @slandelle
site:
gatling.io




On Wed, Sep 9, 2020 at 9:54 AM Павел Безпалько <webmo...@gmail.com> wrote:
Hey. I am writing a load testing socket.io for our server. I have one problem: gatling creates one session for all users. How to create a separate session for each user? Thank you

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/408609c8-3da5-44a8-820f-dbdf63e928dan%40googlegroups.com.

Павел Безпалько

unread,
Sep 9, 2020, 10:19:09 AM9/9/20
to Gatling User Group
There are very few examples of testing socket.io on the net. with gatling. Can you give an example of such an implementation? Thank you.

среда, 9 сентября 2020 г. в 15:25:37 UTC+3, Stéphane Landelle:
Reply all
Reply to author
Forward
0 new messages