Different protocols on each population

Hi,

A general question (though I’m using 3.6.1 for reference). If I provide two protocols for two population builders as in the example provided here: https://github.com/gatling/gatling/blob/main/src/docs/content/reference/current/core/simulation/code/SimulationSampleScala.scala#:~:text=//%20different%20HttpProtocols%20configured,.protocols(httpProtocol2)

// different HttpProtocols configured on each population
setUp(
scn1.inject(atOnceUsers(1))
.protocols(httpProtocol1),
scn2.inject(atOnceUsers(1))
.protocols(httpProtocol2)
)

Can someone tell me how the protocol is decided for each scenario? As far as I can see they get appended to a global protocols map, but is each protocol in that map tried sequentially for the scenario?

Thanks,

Henry

As far as I can see they get appended to a global protocols map,

No it’s not.
A global map is used when configuring the protocols globally on the setUp.
A per scenario map is used when configuring the protocols on the scenario.
The scenario level has precedence over the global one.

Great, thanks