Performance Testing via Artillery.io

Why Artillery?

1. Node.js tool

2. Broad language support

  • Apache Kafka
  • Amazon Kinesis
  • HLS (HTTP Live Streaming)

3. YAML format

4. Accessible scenarios

5. Easy integration

6. Detailed reports

7. Artillery Docs

How does Artillery.io work?

Install

Fast test

Config

Artillery configuration file my.yml
Artillery setup of test environments

Phases in the config

  • duration: the time of one phase;
  • arrivalRate: the number of users added each second;
  • rampTo: up to how many users per second the load will grow by;
  • name: a name of the phases.
Artillery config phases

Plugins

Artillery performance testing — plugins

Scenario

  • GET, POST, PUT, DELETE, and some other commands;
  • a URL for every endpoint;
  • the body text in JSON format;
  • all checks you want to run.
writing tests in Artillery
Artillery load testing — report example

Authentication

Artillery — authorisation
  • payload — to use the payload functionality;
  • path — to write a path for the CSV file that Artillery needs to use;
  • fields — names of fields that you need to use.
Artillery — upload CSV file to authorise by tokens
Artillery — CSV authentification
Artillery — authentication with environment variable
Artillery performance testing — package json
Artillery — past parameters for test requests

Final thoughts

  • runs millions of tests per second across 13 geographical regions;
  • works with existing security systems;
  • no repeat charges or paid maintenance;
  • VPC internal test services.

Useful Links

--

--

--

Useful articles from experienced Valor specialists in various spheres of digital development.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

69th Monthly Technical Session

Manage concurrency in multiple Python clients in Redis.

Clients communicate to the Redis server concurrently

3 Key Products That Powered Dongqiudi during the 2018 FIFA World Cup

VMware Interview Experiance for MTS On-Campus 2022

Is JQL injection real?

Object Storage — How It Works? (2/3)

Why is HTML important when scraping data?

Open Source and the Role of a Good README

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Valor Software

Valor Software

Useful articles from experienced Valor specialists in various spheres of digital development.

More from Medium

How to store JUnit tests in an InfluxDB

Automated API Testing With Rest Assured | Serialization And Deserialization

Locust Load Testing | Getting started

Signing a JWT in JMeter for load testing