NewWonder
14 years agoNew Contributor
setup script for a database connection
Hi,
I am new to soapUI 4.0.1 and wanted to setup a database connection using the setup script. However I am failing to do so .Here is my code i am using , can anybody help?
The connection string , user id and password are correct.
import groovy.sql.Sql
log.info "Preparing Connection"
try{
sql = SqlnewInstance('jdbc:db2://connection','wonder','welcome9','com.ibm.db2.jcc.DB2Driver')
}
catch (Exception e)
{
log.error "Could not establish connection to the database."
}
I am new to soapUI 4.0.1 and wanted to setup a database connection using the setup script. However I am failing to do so .Here is my code i am using , can anybody help?
The connection string , user id and password are correct.
import groovy.sql.Sql
log.info "Preparing Connection"
try{
sql = SqlnewInstance('jdbc:db2://connection','wonder','welcome9','com.ibm.db2.jcc.DB2Driver')
}
catch (Exception e)
{
log.error "Could not establish connection to the database."
}