Alcohol Duty Performance Tests Link: https://github.com/hmrc/alcohol-duty-performance-tests
Performance test suite for the Alcohol Duty Returns
, using performance-test-runner under the hood.
Start the docker desktop application (and make sure the mongodb is running on the docker)
Start Alhocol Duty
services as follows:
sm2 --start ALCOHOL_DUTY_ALL
To enable test only endpoint for local testing, stop ALCOHOL_DUTY_FRONTEND & ALCOHOL_DUTY_RETURNS from SM2 services and run these services locally with an argument as below:
sbt "run -Dapplication.router=testOnlyDoNotUseInAppConf.Routes"
Run below command in terminal: sbt -Dperftest.runSmokeTest=true -DrunLocal=true gatling:test
Run below command in terminal: sbt -DrunLocal=true gatling:test
Go to Jenkins Performance Tests Job on Staging Click on 'Build with parameters' Enter branch name (leave blank if the tests needs to run from the main branch) Set below parameters: Load: 100 ramp_up: 1 constant_rate: 8 Then click 'Build'
The default log level for all HTTP requests is set to WARN
. Configure logback.xml to update this if required.
Do NOT run a full performance test against staging from your local machine. Please implement a new performance test job and execute your job from the dashboard in Performance Jenkins.
This code is open source software licensed under the Apache 2.0 License.