SmartBear Connect 2018
Join us at SmartBear Connect 2018 on October 29th & 30th in Boston, MA.
Apply to speak and share your experience with the greater SmartBear Community
Reply
Highlighted
New Contributor

Can we successfully connect to Mongo DB(No SQL db) from ready api?

Can you list down the options of how can we connect?

 

And the steps with screenshots for each option to connect.

Re: Can we successfully connect to Mongo DB(No SQL db) from ready api?

Hi,

 

Thank you for posting on our forum. You can try the following steps:

 

You can download the JDBC Driver for MongoDB from here:
http://www.unityjdbc.com/mongojdbc/mongo_jdbc.php

 

The class name and an example of a connection string are below.
JDBC Driver class name: mongodb.jdbc.MongoDriver
URL format: jdbc:mongo://<serverName>/<databaseName>

 

After you copy the downloaded driver to the "C:\Program Files\SmartBear\ReadyAPI-1.8.0\bin\ext" folder, you need to add the driver properties below to the "File -> Preferences -> JDBC Driver Properties" preferences (https://www.soapui.org/getting-started/soapui-interface/preferences-and-settings.html#JDBC-Drivers-P...):
Driver: MongoDB/mongodb.jdbc.MongoDriver
Connection String Template: jdbc:mongo://<HOST:0.0.0.0>:<PORT:0000>/<DB>?user=user&password=password (change a host, port, username and password here to your credentials)

 

Close and reopen Ready API

 

Hope this helps.

 

Best,

Lakshmi