Skip to content

answerdigital/AnswerKing-CS-K6

Repository files navigation

K6 Project Template

This template is to define a sample project that can be used for performance testing on other projects.

Installation 🔨

This framework has been created using Node:16 You can install this from

https://nodejs.org/en/blog/release/v16.16.0/

I recommend using NVM or NVM for Windows as this is not the latest version of Node.

npm install

You will also need to install the K6 Binary with Playwright Installed https://github.com/wosp-io/xk6-playwright

Compiling Tests

Compiling Tests is required as in order to support typescript the typescript files need to be transpiled into Javascript (Which is what K6 uses)

npm run compile

Executing Tests

Running a Performance Test 🌍

Execute a test with the thread configuration provided in the test-orchestrator

npm run test

Validating the Suite 🏠

Execute the entire suite however limit the VU's to 1 so that the user can validate that the test works on a single thread.

npm run validate

Running an Individual Scenario 👨

Execute an individual scenario

npm run scenario -- "<ScenarioFilePath"

e.g.

npm run scenario -- .\scenarios\product\get-categories.js

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •