Interview Questions

Use a JDBC Driver from inside a groovy script

SoapUI FAQ


(Continued from previous question...)

Use a JDBC Driver from inside a groovy script

If you want to do direct JDBC calls from a groovy script you first need to register the driver as follows

1.// register MySQL JDBC driver
2.com.eviware.soapui.support.GroovyUtils.registerJdbcDriver( "com.mysql.jdbc.Driver" )

(note that you still have to add the actual JDBC Driver jar to the bin\ext folder)

(Continued on next question...)

Other Interview Questions