Skip to main content
Version: 9.0.0

artillery

Artillery

Artillery is a performance testing toolkit. To use it as plugin in Test Maker, a configuration file written in YAML is added to the project.

The config file looks like this:

config:
target: "https://www.demoblaze.com/"
# Enable the Playwright engine:
engines:
playwright: {}
processor: "../processors/addToCart.js"
scenarios:
- name: 'add to cart browser test'
engine: playwright
flowFunction: "addToCart"
flow: []
note

The artillery documentation contains more details about the toolkit

From the spec file, the plugin is implemented as follows:

import {Feature, artilleryPlugin} from "test-maker";

Feature(`Performance tests`)
.Scenario(`Load testing`)
.Given(`Artillery test`, async (I, runInfo) => {
await artilleryPlugin.run({configPath: `./artillery.yml`})
})