Hi,
I am using a jdbcFeeder like that:
val scenarioFeeder = jdbcFeeder("jdbc:mysql://localhost/mydb", "user", "pass", "SELECT id as scenario_id FROM
scenario` WHERE name = “” + scenarioName + “”").queue
val user = scenario(“user”).feed(scenarioFeeder)
`
But the result is named “id” instead of the expected “scenario_id”. What is wrong here?
As a workaround, I try to convert the name and display the content of the session to check if “scenario_id” has been set, but something is wrong:
`
.exec { session =>
session.set(“scenario_id”, session(“id”))
println(session)
session
}
`
Output:
`
Session(user,955446644765537536-0,Map(id → 4),1413879892893,0,OK,List(),)
`
So what if I want to use 2 feeders that returns both an id? Is there an easy way to rename the “id”?
Thanks for your help!