1.0.1 • Published 4 years ago

artillery-plugin-sitemap v1.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

Artillery Sitemap

This Artillery plugin allows you to get all URL from a sitemap then call randoms URL from this one.

Usage

Install

npm install artillery-plugin-sitemap

Usage

Simple example :

config:
  target: "https://toto.test/sitemap.xml" # Set the sitemap there
  phases:
    - duration: 20
      arrivalRate: 1
  plugins:
    sitemap: {}
scenarios:
  - flow:
      - loop:
          - get:
              url: "/" # We should assign a useless URL there (it will be replaced by a random URL)
              headers:
                User-Agent: "bot"
        count: 100