Ticket for visibility on adding in K6 structure to allow for load testing.
This ticket will have a basic smoke test script implemented.
Smoke tests in this form of testing have a minimal load. Run them to verify that the system works well under minimal load and to gather baseline performance values.
This test type consists of running tests with a few VUs — more than 5 VUs could be considered a mini-load test.
Similarly, the test should execute for a short period, either a low number of iterations or a duration from seconds to a few minutes maximum.
Example code segment for smoke testing:
import http from 'k6/http';
import { check, sleep} from 'k6';
export const options = {
vus: 3, // Key for Smoke test. Keep it at 2, 3, max 5 VUs
duration: '1m', // This can be shorter or just a few iterations
};
export default () => {
const urlRes = http.get('https://test-api.k6.io');
sleep(1);
// MORE STEPS
// Here you can have more steps or complex script
// Step1
// Step2
// etc.
};
Ticket for visibility on adding in K6 structure to allow for load testing.
This ticket will have a basic smoke test script implemented.
Smoke tests in this form of testing have a minimal load. Run them to verify that the system works well under minimal load and to gather baseline performance values.
This test type consists of running tests with a few VUs — more than 5 VUs could be considered a mini-load test.
Similarly, the test should execute for a short period, either a low number of iterations or a duration from seconds to a few minutes maximum.
Example code segment for smoke testing: