5.0.2 • Published 4 months ago

artillery-plugin-faker v5.0.2

Weekly downloads
103
License
MPL-2.0
Repository
github
Last release
4 months ago

Artillery Plugin Faker

Build Status npm JavaScript Style Guide

Makes faker.js available for Artillery load test configurations.

Install

$ npm install -g artillery-plugin-faker

Usage

Add the plugin to your load test configuration:

config:
  plugins:
    faker:
      locale: en

Options

  • locale (default: en) sets the locale of faker.js.

Example

Using a string prefixed with $faker. as variable value will result in a random variable value returned by the indicated faker.js function.

config:
  target: "http://localhost:3000"
  phases:
    - duration: 10
      arrivalRate: 1
  plugins:
    faker:
      locale: en
  variables:
    firstName: "$faker.name.firstName"

scenarios:
  - flow:
      - log: "Making request with query: {{ firstName }}"
      - get:
          url: "/search?q={{ firstName }}"

For a complete list of available faker.js functions, have a look at the faker.js documentation. Please note that no parameters can be passed to the faker.js functions at this time.

Have a look at the example.yml file for a fully working example.

5.0.2

4 months ago

5.0.1

4 months ago

5.0.0

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.0

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago