Forum Discussion
Username1
14 years agoNew Contributor
------- Groovy Script Begin ----------
import groovy.sql.Sql;
import com.eviware.soapui.support.GroovyUtils;
def groovyUtils = new GroovyUtils();
groovyUtils.registerJdbcDriver("oracle.jdbc.driver.OracleDriver");
def dBConnection = context.expand('${#TestCase#DBConnection}')
context.sql = Sql.newInstance(dBConnection, "oracle.jdbc.driver.OracleDriver")
------- Groovy Script End ----------
import groovy.sql.Sql;
import com.eviware.soapui.support.GroovyUtils;
def groovyUtils = new GroovyUtils();
groovyUtils.registerJdbcDriver("oracle.jdbc.driver.OracleDriver");
def dBConnection = context.expand('${#TestCase#DBConnection}')
context.sql = Sql.newInstance(dBConnection, "oracle.jdbc.driver.OracleDriver")
------- Groovy Script End ----------