Git Product home page Git Product logo

address-lookup-performance-tests's Introduction

Address lookup performance tests

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.

Running on a build Agent

Smoke test

To run one journey with one user

sbt -Dperftest.runSmokeTest=true -DrunLocal=true gatling:test

Run the performance test (Default, backend service)

sbt gatling:test

Run the performance test for frontend service

sbt -DjourneysToRun.0=address-lookup-frontend gatling:test

Running locally

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:

API Performance Tests

./run-local.sh

Frontend Performance Tests

./run-frontend-local.sh

Checking test failures

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).

address-lookup-performance-tests's People

Contributors

adrianrapan avatar alastairla avatar ardesco avatar ateohhmrc avatar berlin-hmrc avatar beyond-code-github avatar ejayaraman avatar hmrc-web-operations avatar kaizar12 avatar ssaleem-ee avatar tomasz-rosiek avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.