In the following code loggedUsers is a list o objects (Users) with some properties including its authentication cookie.
How can I access each user propertie into the scenarios chain?
`
val searchMessage = scenario(“searchByMessage”).feed(searchFeeder).foreach(loggedUsers, “logged_user” ){
exec(setSessionCredentials.setTokenAndCookie)
.exec(searchByMessage.browse)}
object setSessionCredentials {
val setTokenAndCookie =
exec{ session =>
val user = “logged_user”
session.set(“fullCookie”, loggedUsers.userCookie)
session
}
`