codecentric / gatling-jdbc

JDBC support for Gatling
Apache License 2.0
23 stars 18 forks source link

How can I connect to a db after my scenario is run? #14

Open Badjangas opened 1 year ago

Badjangas commented 1 year ago

Hi there 👋 I'm trying to connect to my organisation's db and perform a query after my scenario is run. Unfortunately I can't past my code here but essentially this is what I have:

rbraeunlich commented 1 year ago

Hi @Badjangas, issues should be opened here. Nevertheless, you should try to use ScalikeJDBC to make such a connection, since it's already included in the library: http://scalikejdbc.org/ Add the usual Postgres driver to your dependencies and then create a ConnectionPool in your after()