SOAP UI 5.2.1 and database validations failing
I have soap ui free version 5.2.1
iam using windows 10. Have the latest JRE 8.0
What am confused is what .jar file should i be using. It is giving me a error on connecting to the database at the line
testRunner.testCase.setPropertyValue("EmployeeID", getEmployeeIdFromDB(db))
below is my code:
/*import groovy.sql.Sql
com.eviware.soapui.support.GroovyUtils.registerJdbcDriver("com.microsoft.sqlserver.jdbc.SQLServerDriver")
def db = connectDataBase()
testRunner.testCase.setPropertyValue("EmployeeID", getEmployeeIdFromDB(db))
log.info testRunner.testCase.getPropertyValue("EmployeeID")
closeDatabase(db)
*/
Error am seeing is
2016:INFO:com.microsoft.sqlserver.jdbc.SQLServerDriver
under soapUI log i see
ERROR:An error occurred [Cannot invoke method firstRow() on null object], see error log for details
Could this be because of the out dated .jar file. Iam currently having sqljdbc4.jar under the location
C:\Program Files\SmartBear\SoapUI-5.2.1\bin
Please let me know what is going on ?. Is the jar file too old?. is the location wrong?