Some time ago I wrote a blog post on the codecentric blog about how to extend Gatling. As accompanying code example I created a small library on GitHub: Gatling-JDBC
Finally, after keeping the library untouched for several months, I performed the necessary steps to publish it on Maven Central! This means you can now use de.codecentric.gatling-jdbc version 1.0.0 in your Gatling load tests. I upgraded its dependencies so that is compatible with the latest Gatling version 2.3.1.
Its usage is described in the blog post or you can take a look at the different simulations in the test directory. If you encounter any problems or would like to suggest any improvements feel free to open an issue on GitHub.
Saturday, May 19, 2018
Gatling-JDBC on Maven Central
Related Posts
Comment!
Subscribe to:
Post Comments (Atom)
I am getting error Connection pool is not yet initialized.(name:'default)
ReplyDeleteThis is my code
import dev.code_n_roll.gatling.jdbc.Predef._
import io.gatling.core.Predef._
import io.gatling.core.structure.ChainBuilder
object Mdm {
def jdbctest: ChainBuilder = {
val jdbcConfig = jdbc
.url("jdbc:mysql://testdb:3306/testschma?autoReconnect=true&failOverReadOnly=false&secondsBeforeRetryMaster=0&queriesBeforeRetryMaster=0&useSSL=false")
.username("testuser")
.password("testpasswd")
exec(jdbc("selection")
.select("UUID,USER_TYPE")
.from("test.jtest_userinfo")
.where("UUID = '23b4bc017166'"))
}
}
Hey,
Deletecould you please open an issue on Github for this?