JSR223 (Groovy) cannot access MongoDB(3.0.3) in Jmeter(2.13)
问题 I have a problem in my JSR 223 Groovy script when it tries to access MonDB 3.0.3 with authentication enabled from JMeter 2.3 : import com.mongodb.DB; import org.apache.jmeter.protocol.mongodb.config.MongoDBHolder; DB db = MongoDBHolder.getDBFromSource("mongoDS", "${mongodb_database}", "${mongodb_user}", "${mongodb_password}"); DBCollection coll = db.getCollection("users"); BasicDBObject query = new BasicDBObject("userId",vars.get("userId")); DBCollection coll = db.getCollection("users"); This