Passing a separate protocol configuration to each scenario of a multi-scenario simulation

991 views
Skip to first unread message

Volodymyr Rudyi

unread,
Feb 25, 2014, 2:46:10 PM2/25/14
to gat...@googlegroups.com
Hello,

Documentation contains an example in which separate protocol configs are passed to each scenario (https://github.com/excilys/gatling/wiki/Advanced-Usage#wiki-multi-scenario). It seems that the API was changed during refactoring(e.g. https://github.com/excilys/gatling/commit/7c081d309d94010ed6dd7f4eb644e6b516a03135). Is there a way to pass a separate protocol config to each scenario in multi-scenario simulation ? 

Stéphane Landelle

unread,
Feb 25, 2014, 3:00:07 PM2/25/14
to gat...@googlegroups.com
It's back in master (we had feedback from the community after we did that change in 2M3a).


2014-02-25 20:46 GMT+01:00 Volodymyr Rudyi <vladimi...@gmail.com>:
Hello,

Documentation contains an example in which separate protocol configs are passed to each scenario (https://github.com/excilys/gatling/wiki/Advanced-Usage#wiki-multi-scenario). It seems that the API was changed during refactoring(e.g. https://github.com/excilys/gatling/commit/7c081d309d94010ed6dd7f4eb644e6b516a03135). Is there a way to pass a separate protocol config to each scenario in multi-scenario simulation ? 

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Volodymyr Rudyi

unread,
Feb 25, 2014, 3:28:36 PM2/25/14
to gat...@googlegroups.com
Cool! Is there a known workaround for 2M3a version ?

Вівторок, 25 лютого 2014 р. 22:00:07 UTC+2 користувач Stéphane Landelle написав:

Stéphane Landelle

unread,
Feb 25, 2014, 3:30:21 PM2/25/14
to gat...@googlegroups.com
Nope, sorry.

Volodymyr Rudyi

unread,
Apr 3, 2014, 11:44:37 AM4/3/14
to gat...@googlegroups.com
Was there any changes in custom protocol config API or example from docs should work? For some reason I'm still getting compilation errors when trying to use example from docs with snapshot version of Gatling.

Stéphane Landelle

unread,
Apr 3, 2014, 11:54:02 AM4/3/14
to gat...@googlegroups.com
What's your problem exactly?


2014-04-03 17:44 GMT+02:00 Volodymyr Rudyi <vladimi...@gmail.com>:
Was there any changes in custom protocol config API or example from docs should work? For some reason I'm still getting compilation errors when trying to use example from docs with snapshot version of Gatling.

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Volodymyr Rudyi

unread,
Apr 3, 2014, 12:16:57 PM4/3/14
to gat...@googlegroups.com
I have the following fragment:


    setUp(
      testScenarios.map(s => s.inject(atOnceUsers(1).protocolConfig(addScnName(scn)))).toList: _*
    )

Which results in:

> value protocolConfig is not a member of io.gatling.core.controller.inject.AtOnceInjection

Where testScenarios is an iterable with all scenarios and addScnName returns custom protocol config for the specified scenario (actually it just adds custom header with scenario name so all request of each scenario contain header with the corresponding name)



--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/XS97laLxoRY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards, 
Volodymyr

Stéphane Landelle

unread,
Apr 3, 2014, 12:22:55 PM4/3/14
to gat...@googlegroups.com
Many things wrong, the first one being that you should close inject() before trying to set up the protocols.

Volodymyr Rudyi

unread,
Apr 3, 2014, 12:28:24 PM4/3/14
to gat...@googlegroups.com
Thanks, I just used documentation from https://github.com/excilys/gatling/wiki/Advanced-Usage#multi-scenario . Seems like it's bit outdated.

Stéphane Landelle

unread,
Apr 3, 2014, 12:30:50 PM4/3/14
to gat...@googlegroups.com
It's for Gatling 1.
We're currently working on the documentation for Gatling 2M4, such as https://github.com/excilys/gatling/blob/master/src/sphinx/general/simulation_setup.rst#injection
Reply all
Reply to author
Forward
0 new messages