Forum Discussion
4 Replies
- groovyguyCommunity Hero
First, you need to source a Couchbase JDBC driver. This site might have one: http://cdn.simba.com/products/Couchbase/doc/JDBC_InstallGuide/content/jdbc/intro.htm
Once you download the JDBC driver, you have to place it into the ReadyAPI install folder\Bin\Ext. Once you have that copied into that folder, if ReadyAPI is open, close it. Open it back up. That will have ReadyAPI recognize the JDBC driver.
Then you have to set up the connection string template and driver settings. Documentation for that is here: https://support.smartbear.com/readyapi/docs/testing/data-driven/drivers/mssql.html
Note: That link is for MS SQL, but it's got most of the information we need.
In the ReadyAPI preferences menu, we need to click on the "JDBC" drivers tab and set up the driver. Click on the green + sign and it'll start the JDBC wizard.
The Unique driver name it asks for should be "Couchbase" or something else to identify easily what database system you are working with.
Next is setting up the connection string template. Basing this off of the above ReadyAPI documentation and the Couchbase documentation here: http://cdn.simba.com/products/Couchbase/doc/JDBC_InstallGuide/content/jdbc/co/using/connectionurl.htm
The template should be something similar to:
jdbc:couchbase://<HOST>:<PORT>/<DB>
That should be a start. Let me know if it works.
- ShikharSaxenaOccasional Contributor
HI Msiadak,
Thanks for the reply, But driver on "http://cdn.simba.com/products/Couchbase/doc/JDBC_InstallGuide/content/jdbc/intro.htm" is paid one and free one is only last for 30 days, I am looking for free driver that I can integrate with Ready Api.
Is there any link/site where I can find the free driver and get this done.
Again thanks for helping me!
Shikhar
- groovyguyCommunity HeroSadly you'll need to brush up on your googlefu for that. Chances are if they provide a paid driver it's for a reason.
- groovyguyCommunity Hero
Here's a Couchbase jdbc driver someone has in GIT: https://github.com/jdbc-json/jdbc-cb. It looks like it would require you to build the JAR yourself, though.