Forum Discussion
nmrao
Champion Level 3
While using data base connection thru Groovy Script, the driver class has to be registered explicity.
User below statement as sample to register mysql; so change it to mongodb for your case.
com.eviware.soapui.support.GroovyUtils.registerJdbcDriver( "com.mysql.jdbc.Driver" )
User below statement as sample to register mysql; so change it to mongodb for your case.
com.eviware.soapui.support.GroovyUtils.registerJdbcDriver( "com.mysql.jdbc.Driver" )
IvanB
7 years agoOccasional Contributor
Thanks nmrao , but what about registering db connection and creating db connection step with that connection? Am I doing something wrong in there?
- nmrao7 years agoChampion Level 3Not quite clear what you are asking.
Have you tried the comment from previous reply? what was the outcome?- IvanB7 years agoOccasional Contributor
I'm talking about the setting in my initial message here p.2 where I set up the driver for Mongo and the when I select this driver from the list in JDBC Test Step or put the driver name manually like here:
When I try to test the connection, I'm getting:
- nmrao7 years agoChampion Level 3Thought you were using groovy script as shown in the earlier reply of yours. So suggested to register the driver explicitly at the beginning of the script.
Related Content
- 8 years agoLavalyte