JMeter Bolt Protocol

In Apache JMeter 5.2 the bolt sampler was added. It allows you to run Cypher queries through the Bolt protocol. The sampler is a good way to test Neo4j procedures.

Within JMeter bolt has two components; i) the Bolt Connection Configuration and the ii) Bolt Request.

BOLT CONNECTION CONFIGURATION

This competent is where we supply the Name, URI, Username and Password that enable us to connect to the Neo4j database.

In this example those values are: -

Name = Bolt Connection Configuration

Bolt URI = bolt://localhost:7687

Username = neo4j

Password = <Blank>

BOLT REQUEST

This competent is where we supply the Cypher Statement and the Params. The parameter values used in the Cypher are listed here, in JSON formatted, but is not mandatory.

EXAMPLE CYPHER STATEMENTS
Insert data into the neo4j database

CREATE (ee:Person { name: "Emil", from: "Sweden", klout: 99 })

Query data for Emil and return value

MATCH (ee:Person) WHERE ee.name = "Emil" RETURN ee;

Previous
Previous

Jmeter Global Properties

Next
Next

GIT & Jmeter