Hi,
Is it possible to define a baseUrl at the scenario level and not have
all scenarios inherit the baseUrl from the protocol level?
Many Thanks
Aidy
Hi,
Is it possible to define a baseUrl at the scenario level and not have
all scenarios inherit the baseUrl from the protocol level?
Many Thanks
Aidy
You can pass protocols either at setUp level or at scenario level: http://gatling.io/docs/2.0.3/general/scenario.html?highlight=protocols#protocol-definition
Hi Stéphane,
I am sorry but I still don't know how this works. Do you have an
example of the protocols method being used in a scenario and its
injection please?
Many Thanks
Aidy
Isn’t the example in the documentation clear enough?
Hi Aidy,
What you can do is declare another baseUrl as
val httpConf2 = http.baseURL("http://myUrl")....
create your users on top of it.
In your scenarios, you can do
scn.inject(...).protocols(httpConf2)
Hi Abhinav,
I was looking for complication when there wasn’t any, in something which now seems blatantly obvious.
Many Thanks
Aidy