Expecting connection close

I have an unusual use-case and was wondering if this is possible in Gatling.

The use-case involves testing that for a certain request the connection is closed by the server (rather than receiving a response).

I tried doing this (without checks, because there should be no reply) and with other constructs such as exitBlockOnFail, but always end up with an exception and a failed test.

Can this be done using the Gatling DSL?


Currently, no. Is this really a use case for load testing? Do you use Gatling for functional testing too?



Yes, I’m trying to use the same code base for functional and load testing…

Thanks for the swift answer; too bad it can’t be done…

Well, I’ll try to find a way. Can’t promise anything though.