Define baseUrl at the scenario level


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


You can pass protocols either at setUp level or at scenario level:

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


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


Hi Abhinav,

I was looking for complication when there wasn’t any, in something which now seems blatantly obvious.

Many Thanks