This plugin adds feature to JMeter to load test couchbase (no sql database) using couchbase sdk client library.
- Jmeter version 5.5 or above
- Java 8 or above
- Apache JMeter
- Couchbase connection string
- java-client-3.4.1 (lib/ext)
- core-io-2.4.1 (lib)
- reactor-core-3.5.0 (lib)
- reactive-streams-1.0.4 (lib)
- Download the source code from the Gitlab.
- Just do a mvn clean install (Git bash is required)
- Jar will be generated under the target directory (jmeter-couchbase-sampler-x.jar).
- Copy the Jar to
<Jmeter Installed Directory>/lib/ext/
- Add Config element -> Couchbase Config
- Provide the connection string details (couchbase capella/on-premise hostname, credentials, bucket, scope, collection and other connection options required)
- Provide a name in "Bucket Object" field to export the connecting object to sampler element.
- To establish connection with multiple bucket, add more than one config element with different object name.
- Add Sampler -> Couchbase sampler element in Thread Group
- provide the Exported object name in the step 3 and select the query type (N1QL/Data operations)
- provide scope/collection information - if required
- Use the query field to perform the Data Operations/Query Operations using N1QL
- Data operations enables the simplest way to retrieve or mutate data where the key is known.
- It covers CRUD operations, document expiration, and optimistic locking with CAS
- The supported CRUD operations were INSERT, GET, UPSERT, REMOVE
- Default timeout is set to 5 minutes for any CRUD operations
- The parameter field is ignored when the query type is not N1QL
- The SQL++ mode is considered to write formal SQL queries on couchbase
- The query is always performed at the Cluster level, using the query method
- The scope and collection parameters were ignored when the query type is selected as N1QL
- Default query timeout is set to 5 minutes.
Below are the references which guided to build this plugin.
If this project help you reduce time to develop, you can give me a cup of coffee :)
Please rate a 🌟 if you like it / benefits you.
Please open up a 🪲 - If you experienced something.
- IntelliJ IDEA
- Markdown editor online (https://dillinger.io/)