http requests without waiting for response

772 views
Skip to first unread message

Darrel Decker

unread,
Dec 10, 2015, 12:28:11 PM12/10/15
to Gatling User Group
Hi Gang,

I have a situation where our website has a button that can get pressed rapidly and it fires off an http service request every time it is pressed. We had a bug where the browser was still processing the first button press before the second button press happened so basically 2 requests hitting the same service within microseconds of each other but both still processing the request.

I wanted to create a regression test for this in Gatling and I thought it would be pretty easy because I would just repeat on the http request. However, I found out that I couldn't recreate the bug with Gatling because it looks like every http request waits for the response to complete before doing the next one so I couldn't really recreate the same situation that was happening manually in the browser. Is there any way for me to make a Gatling scenario that would rapid fire http requests from the same user session without waiting for the response to complete?

I hope that makes sense.

Thanks :)

Stéphane LANDELLE

unread,
Dec 10, 2015, 2:22:31 PM12/10/15
to gat...@googlegroups.com
You'd need something like:

There hasn't been any effort yet in this area. Currently, the only way to have concurrent requests is to use "resources" but it means that they have to be attached to a main request, and will be triggered as soon as the main request completes.

Stéphane Landelle
GatlingCorp CEO


--
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.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages