Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liamseck/k6-wpe-hybrid-woocommerce
Browser and Protocol Level load test against a WooCommerce Deployment on WPE
https://github.com/liamseck/k6-wpe-hybrid-woocommerce
hybrid k6 load-testing woocommerce wordpress
Last synced: 5 days ago
JSON representation
Browser and Protocol Level load test against a WooCommerce Deployment on WPE
- Host: GitHub
- URL: https://github.com/liamseck/k6-wpe-hybrid-woocommerce
- Owner: LiamSeck
- Created: 2024-10-02T15:29:36.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T11:18:22.000Z (about 2 months ago)
- Last Synced: 2024-11-07T11:40:32.377Z (about 2 months ago)
- Topics: hybrid, k6, load-testing, woocommerce, wordpress
- Language: JavaScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![k6](https://img.shields.io/badge/k6-7D64FF.svg?style=for-the-badge&logo=k6&logoColor=white)](https://github.com/grafana/k6)![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E.svg?style=for-the-badge&logo=JavaScript&logoColor=black)
# K6 Hybrid Performance Testing of WooCommerce
## Overview
This repo contains an example [hybrid](https://grafana.com/docs/k6/latest/using-k6-browser/recommended-practices/hybrid-approach-to-performance/) performance load test simulating a full checkout flow against a WooCommerce installation hosted on WPE: https://liamseprod.wpenginepowered.com/.
The code in this repo combines a browser and HTTP protocol level test in a single script. The script runs a protocol level load test and also spins up a Chromium based browser to check the frontend for any unexpected usability issues throughout the checkout flow while the system is under load.
---
### Execution Steps
- To execute the test using your local machines resources run:
```
k6 run hybrid-test.js
```- K6 browser tests run in a headless browser by default. To disable this and to see the Chrome browser open add the complete the steps defined in the `checkFrontend()` function found in `hybrid-test.js` add the `K6_BROWSER_HEADLESS=false` flag:
```
K6_BROWSER_HEADLESS=false k6 run hybrid-test.js
```- To execute the test using K6 Cloud run:
```
k6 cloud run hybrid-test.js
```