46. class Test extends Simulation {
val httpConf = http.baseURL("http://neo-database:7474")
val test = scenario("GetGraph")
.exec(
http("execute_query")
.post("/extension/query/execute")
.body(StringBody("MATCH (root)-[:HAS*]->(child)"))
.check(status.is(200))
.check(jsonPath("$.results").count.is(100))
)
setUp(
test.inject(
rampUsersPerSec(0) to (1000) during (60 seconds)
)
).protocols(httpConf)
}
58. • Incorrect server setup
• Unconfigured networking
• Low max open connection limit
59. Learned
- Performance testing should be done
- Test results should be interpreted
properly
- Test results should be verified in
different environments