I tried to etablish a jdbc connexion to find a value and use it from another request.
Using Visual Studio for example i managed to add and connect to mysql DB and execut properly my request but when executed with Gatling 3.4.1 ( from same Visual Studio ) i get this issue :
First, I’m not used to putting libraries in gatling/lib folder. But as your link suggests (compile dependencies), I think you should add protobuf-java as well.
That one reason to use a dependency manager (sbt, maven, gradle, …) and it is not an issue related to gatling itself.
Your println will not show anything useful anyway.
I don’t know your query (and not the column name) but I guess there is an id column:
val scenario = scenario("MyScenario")
.feed( mysqlFeeder )
.exec(session =>
for {
id <- session("id").validate[Long]
} {
println( id )
}
session
})