Skip to contentমূল লেখায় যান

K6 · 20 topicsK6 · 20টি টপিক

k6 Performance Testingk6 Performance Testing

Learn performance testing and k6 one topic at a time, in order. Each topic gives one idea, a script that you can run, and the result that you should see.একটা একটা করে টপিক ধরে ক্রমানুসারে পারফরম্যান্স টেস্টিং ও k6 শিখুন। প্রতিটা টপিকে আছে একটা আইডিয়া, একটা স্ক্রিপ্ট যা আপনি চালাতে পারবেন, আর যে রেজাল্ট আপনার দেখার কথা।

The base is the owner's notes on k6. Each fact on a page links to an official source, mostly the Grafana k6 docs.ভিত্তি হলো মালিকের k6 নোট। প্রতিটা পেজের প্রতিটা তথ্য একটা অফিশিয়াল সোর্সে লিংক করা, বেশিরভাগই Grafana k6 docs। See it in a real project: the owner's k6-performance-testing repository on GitHubবাস্তব প্রজেক্টে দেখুন: GitHub-এ মালিকের k6-performance-testing repository

0 of 20 topics done20টির মধ্যে 0টি টপিক সম্পন্ন

Topicsটপিকসমূহ

Part 1পার্ট 1 · Performance testing basics

  1. What Is Performance Testing?

    What performance testing is, and why a tester should do it.

  2. Types of Performance Testing

    Capacity, load, stress, volume, spike, and soak tests, and when to use each.

  3. Choosing a Performance Testing Tool

    How to pick a load testing tool by elimination.

Part 2পার্ট 2 · Start with k6

  1. What Is k6?

    An open-source load testing tool where you write the test as JavaScript.

  2. Install k6 and Run Your First Script

    Install k6, run a small script, and read the first output.

  3. Reading the k6 Results

    The built-in metrics, p95 and p99, and a checklist to read a result.

  4. The k6 Test Lifecycle

    The four stages of a k6 script: init, setup, VU code, and teardown.

Part 3পার্ট 3 · Configure the load

  1. VUs, Duration, and Iterations

    How virtual users, test time, and iteration count set the load.

  2. Stages and Checks

    Change the load over time with stages, and verify each response with checks.

  3. Thresholds

    Pass or fail a test with limits on the metrics.

  4. Scenarios and Executors

    Model a real traffic mix with scenarios and choose an executor for each.

Part 4পার্ট 4 · Write real scripts

  1. Tags and Groups

    Label requests so that you can split the results.

  2. POST Requests and API Flows

    Log in, then pass the token to the next request.

  3. Environment Variables and Test Data

    Pass settings with __ENV and load test data from a CSV file.

  4. Custom Metrics

    Add your own Counter, Gauge, Rate, and Trend metrics.

Part 5পার্ট 5 · Results and practice

  1. Reports and the Web Dashboard

    Get a summary, a JSON file, or a web dashboard from a run.

  2. Live Results with InfluxDB and Grafana

    Send k6 metrics to InfluxDB and watch them in a Grafana dashboard.

  3. Smoke, Load, Stress, Spike, Soak, and Breakpoint Tests

    One k6 script for each type of test.

  4. k6 in CI

    Run k6 in GitHub Actions and fail the job when a threshold fails.

  5. Case Study: Testing a Money-Transfer API

    Walk through a real k6 project: 13 scenarios, thresholds for each API, and a deadlock that the test found.