gatling / gatling

Modern Load Testing as Code
https://gatling.io
Apache License 2.0
6.41k stars 1.19k forks source link

Core: ability to launch a group of requests in parallel outside the resources scope #3783

Open notdryft opened 5 years ago

notdryft commented 5 years ago

Single Page application often perform multiple requests at the same time while viewing pages.

Right now, the only way to simulate to behavior is to use the resources DSL element. However, if you do so you'd end up silencing your precious API requests with silentResources...

I'd see multiple ways to provide this ability :

See #2336 for a previous query on this

phiSgr commented 5 years ago

How about async-await?

https://github.com/phiSgr/gatling-ext/blob/master/src/test/scala/com/github/phisgr/example/GenericExample.scala#L19

pschiffe commented 4 years ago

This feature could probably solve this problem as well: https://groups.google.com/forum/#!topic/gatling/C2cKGviiuKI

pschiffe commented 4 years ago

When going through the mailing list, I see more topics regarding this feature request:

https://groups.google.com/d/msg/gatling/655oWQFf72o/mXfOgUNiFgAJ https://groups.google.com/d/msg/gatling/pfOECwG-mwA/X3WrRFK2AQAJ https://groups.google.com/d/msg/gatling/hAWKTn6ONBc/f_1wCa8pjsYJ https://groups.google.com/d/msg/gatling/N4PajpAuBMg/oQHcWFgUBQAJ https://groups.google.com/d/msg/gatling/Q_hg8PYbc5U/nGbX59ejBwAJ https://groups.google.com/d/msg/gatling/EmcPTxV0BlA/4luDCbnJWm0J https://groups.google.com/d/msg/gatling/Rn1Ev1VW3X0/IhihWEpmCQAJ https://groups.google.com/d/msg/gatling/ujlGuBeAObI/npzqG06oFAAJ https://groups.google.com/d/msg/gatling/eAgsDbvZna8/3qRPvquSDAAJ https://groups.google.com/d/msg/gatling/vr6GknCI7r4/QtIguhE81tUJ https://groups.google.com/d/msg/gatling/1kGyMC_0DyQ/H202S_GxBwAJ

slandelle commented 4 years ago

Open source: if you really need something, the best way to make it happen is to contribute it.

pschiffe commented 4 years ago

Yes, I'm familiar. I'm contributing by gathering user feedback and reporting bugs, unfortunately I cannot contribute Scala code, I would if I could.

FeldrinH commented 3 years ago

Is there any update on this? I understand that a full-fledged parallel exec DSL is complicated, but it would be nice to at least have a version/copy of .resources where each parallel request is treated more like a top-level request i.e. they don't require a top-level http request to exist and ignore silentResources.

Maybe something like this:

exec(
  parallelHttp(
    http("req-1").get(url1),
    http("req-2").post(url2),
    ...
  )
)
zawawimanja commented 2 years ago

any update on this ?

slandelle commented 2 years ago

Ticket is still open without a milestone set, so answer is likely no.