Like com.mysql.jdbc.Driver
in the case of mysql
, what would be the JDBC
driver
class for mongodb
?
In java code, it can be obtained as
MongoClient mongoClient = new MongoClient("localhost");
but in the case of JMeter
, it requires JDBC
driver class name.
You can try and use below details as reference
JDBC Driver class name: mongodb.jdbc.MongoDriver
URL format:jdbc:mongo://<\serverName>/<\databaseName>
e.g. url="jdbc:mongo://ds029847.mongolab.com:29847/tpch";
Con = DriverManager.getConnection(url, "dbuser", "dbuser");
Hope this will help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With