Performance test repository for address-lookup service
This repository contains tests for both the backend and frontend service for address-lookup. The default journey runs the backend service.
To run one journey with one user
sbt -Dperftest.runSmokeTest=true -DrunLocal=true gatling:test
sbt gatling:test
sbt -DjourneysToRun.0=address-lookup-frontend gatling:test
Before you run any tests locally you will need to start up address lookup using service manager (This does require a local mongodb instance).
To run mongodb locally with docker:
docker run --rm --name mongodb -p 27017-27019:27017-27019 mongo:4
To start the services up with service manager:
sm --start ADDRESS_LOOKUP_SERVICES -r --appendArgs '{
"ADDRESS_LOOKUP_FRONTEND":[
"-J-Dapplication.router=testOnlyDoNotUseInAppConf.Routes",
"-J-Dmicroservice.hosts.allowList.1=localhost"
]
}'
A couple of scripts have been created to make it easier to run the tests locally they are as follows:
./run-local.sh
./run-frontend-local.sh
Some additional information is being logged is Gatling detects a KO response, this information will be displayed in the simulation.log file held with the Gatling report (*/adresslookupsimulation-<date>/simulation.log
).