Forum Discussion

Wslo123's avatar
Wslo123
New Contributor
7 years ago

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.

1 Reply

  • lakshmiarun's avatar
    lakshmiarun
    SmartBear Alumni (Retired)

    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-Properties):
    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