1 - this line is to copy the record as session.
exec(session => session(“record”).validate[Map[String, String]].map(record => session.setAll(record.toSeq)))
2 - The record is stored as a Map.
3 - if I want to execute this code, then I need to return a string for ${language} and ${committee} and not a Map.
val languages = csv(“languages.txt”).data.toSeq
val committees = csv(“committees.txt”).data.toSeq
val scn = scenario(“Get Europarl CO - Scenario with sequences : languages & committees”)
/* loop on languages sequence */
.foreach(languages, “language”){
exec(session =>
// session(“language”).validate[Map[String, String]].map(language => session.setAll(language.toSeq))
session(“language”).validate[Map[String, String]].map(
language => session.set(“languagecode”, language.mkString("").replace("languagecode → ", “”))
)
Your solution is much more elegant. ;o))). I know how to manage a record and it will be very useful for the future scenario.
I will test it and let you know.
Thanks a lot for your time and your quick replies.
I made my test and it is OK. ;o)))
I was looking informations about gatling.conf. I took a look at this page https://github.com/excilys/gatling/wiki/Configuration but the links do not work.
I have a problem of timeout and I wanted to change this value idleConnectionInPoolTimeoutInMs which is set at 60 by default.