A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/UlisesGascon/PoC-Load-test below:

UlisesGascon/PoC-Load-test: Just a simple repo to show the potential of K6.io

POC: Load tests against API Rest

This project will handle the load tests for backend API.

Include:

The scripts provide a simplified visual report with testings and validations

Grafana Dashboard support

There is an easy option to debug any performance issue using a full featured dashboard.

As well is possible to check details in depth.

npm run infra:build   # Build docker-compose
npm run infra:start   # Up docker-compose
npm run infra:stop    # Down docker-compose

You should create a .env file at the same level as the docker-compose.yml. Those environmental variables will be injected to the K6 docker image.

Variables needed:

BACKEND_BASE_URL
USER_EMAIL
USER_PASS

By default there is no dashboard attached to Grafana. So please follow the steps.

  1. Enter to import dashboard: http://localhost:3000/dashboard/import
  2. Add 2587 to Grafana.com Dashboard and click `Load``
  3. On the new screen select myfluxdb as the value for k6 field and click import
  4. You will redirected to the dashboard

Update the .env with the information needed.

Note: If you need to access to a running server outside the container, you can use host.docker.internal, like:

BACKEND_BASE_URL=http://host.docker.internal:4000

To run the tests:

⚠️ Note: the tests can take a while 5 minutes or more. So please check the terminal and the dashboard


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4