Skip to content

shopware/k6-shopware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana K6 with Shopware

This repository contains helpers and an example scenario to run K6 against a Shopware Shop.

Note

Headless use-cases are right now not implemented

Requirements

  • Bun
  • K6

Usage

Create an .env file with your Shopware Shop Credentials. See .env.example for reference.

First install the npm packages bun install

Run bun run fetch-fixtures.ts to fetch seo-urls, the sales channel from external.

Run k6 run example.js to run the example scenario. The example scenario will create a new customer, add a product to the cart and checkout the cart.

You can adjust with -u USERS --iterations ITERATORS how often this and parallel this scenario should run.

Optional: Storefront Basic Auth

If your storefront is protected by HTTP Basic Authentication, you can provide credentials via the environment variables STOREFRONT_USERNAME and STOREFRONT_PASSWORD.

For more information

See the K6 documentation or the Shopware Documentation.

Releases

No releases published

Contributors