3

My host does not allow direct database access and so I need to SSH into the MariaDB instance.

Has anyone had success with this approach in Katalon Studio?

The recommended JDBC connection will not suffice

@Keyword
def connectDB(String url, String dbname, String port, String username, String password){

    //Load driver class for your specific database type

    String conn = "jdbc:mysql://" + url + ":" + port + "/" + dbname

    //Class.forName("org.sqlite.JDBC")

    //String connectionString = "jdbc:sqlite:" + dataFile

    if(connection != null && !connection.isClosed()){

        connection.close()

    }
}
Daemon Painter
  • 3,208
  • 3
  • 29
  • 44
Josh Young
  • 31
  • 1

0 Answers0