K6- Automate Performance &Load Testing of API& Microservices
5.0 (1 rating)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
14 students enrolled

K6- Automate Performance &Load Testing of API& Microservices

Are you still stuck with Jmeter? Automate realistic stress/load test of API & simulate real-world scenarios
Hot & New
5.0 (1 rating)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
14 students enrolled
Last updated 7/2020
Current price: $139.99 Original price: $199.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 11.5 hours on-demand video
  • 1 article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • The best developer experience using open source load testing tool and JavaScript language to write realistic load tests.
  • Performance monitoring of your APIs , Websites and microservices in production.
  • Write automated tests in Javascript that simulate real-world scenarios and Get Pass/Fail behavior on your performance goals.
  • Validate that your system can handle the expected volume of traffic, and catch critical performance regressions before they reach production.
  • Generate load from 16 geographic locations to test API using K6 Cloud.
  • Accelerate your performance testing using Cloud, Gitlab, CI/CD, AWS EC2, InfluxDB, Grafana.
  • API Performance and Load Testing Framework Design.
  • Output performance test results and metrics to InfluxDB and create interactive dashboard using Grafana.
Course content
Expand all 81 lectures 11:32:52
+ Welcome
6 lectures 37:21
K6 and Cloud Random Shots
Create Performance Test Project
API Performance Testing
Introduction Quick Recap
All Downloadable Resources
+ Design K6 Performance Test Cases
7 lectures 28:04
Write Load Test Case in JavaScript
Random Shots
Load Virtual Users
Configure Virtual Users
Ramp-up Ramp-down User Load
Random Shots Rampup
Recap Virtual Users
+ Checks
4 lectures 53:18
Checks and Asserts
Multiple Checks
Error Rate
Recap Checks
4 lectures 35:40
Header and JSON
Response Array
Data Array
Post Requests
+ Performance Test Metrics
5 lectures 43:42
Built-in Metrics
Design Counter
Counter Retry Mechanism
Understand Trend
Trend Retry Mechanism
+ Threshold
2 lectures 23:07
Basics of Threshold
Threshold on Checks
+ Design Dashboard
4 lectures 29:49
Configure Influxdb
Configure Grafana
View Live Test results and Metrics
Understand Grafana Load Test Dashbaord
+ K6 and Amazon EC2
5 lectures 16:52
Influxdb on EC2
Grafana on EC2
Link Influxdb and Grafana
K6 on EC2
Execute Load Test on EC2
  • No prior experience in Testing or Performance Testing or in Programming Language is required.
  • No need to purchase any software. We will use open source load testing tool and JavaScript.

We will enhance this training course regularly to cover more examples and real-time projects.

Summary - Learn the future of performance testing and automate Performance & Load Testing of API and micro-services using open-source tool K6.

  • Open Source - K6 is an open-source load testing tool built for developers and testers' happiness. It has over 1 million installations.

  • Notifications - Pass/Fail behavior for easy automation and integration into CI pipelines, Gitlab

  • Developer centric load testing - Everyone loves fast apps, APIs and websites. K6 helps you to automate Load tests that simulate real-world users as closely as possible.

  • Goal-based load testing - You will be able to automate test which covers performance and functional goals like what level is a response time not acceptable, and/or what is an acceptable failure rate

  • Store and Visualize Performance Test Results -  K6 can output its test result data to different sources like JSON file, Grafana

  • IntelliSense - Get code auto-completion and in-context documentation.

  • Visual Studio Code Extension - Execute VS Code commands to run a k6 test of your current file.

  • Performance Monitoring - Performance monitoring of your APIs and micro-services in production.

  • Load Testing - Quickly build test cases to validate the performance of your APIs or micro-services. Validate that your system can handle the expected volume of traffic, and catch critical performance regressions in CI before they reach production.

  • Automated testing - Automate your performance tests. Get Pass/Fail behavior on performance goals.

  • Write tests in Javascript code - Full scripting language to write realistic load tests. Reuse modules and Javascript libraries to build and maintain a performance test suite.

  • Scaled to the cloud - Designed to use the same test in a local or cloud environment.

  • k6 Cloud - Speed-up performance testing and Avoid managing your own infrastructure.

  • GUI test builder - Record your tests using the browser extension

  • Run cloud tests - Scale tests in the cloud up to 100k concurrent virtual users and Generate load from 16 geographic locations

  • Test Scheduling - Schedule and run tests from the web app, CLI, and CI pipelines

  • Analyze test results - Filter your test results by location, period, and tags. Get a convenient overview of your test results.

  • Be a performance expert - Compare performance results between tests. Get automatic analysis and recommendations that quickly pinpoint performance issues. Get alert about your performance tests.

Are you still stuck with JMeter? Then, learn GUI and Code-based testing with JavaScript and Upgrade to K6 & K6 Cloud for better developer experience.

K6 is used by Amazon, Microsoft, Grafana, Gitlab, Citrix, etc. Backed by 20 years of experience.

Course Curriculum Summary

  1. Promotion Video Walkthrough

  2. Understand the Basics of K6

  3. Understand API Performance Testing

  4. Design and execute Sample Test Script

  5. Running K6 with 100S of virtual users

  6. Ramp-up and Ramp-down Users

  7. Checks, Asserts and Design Error Rate and Failure Rate

  8. Write HTTP Requests and parse responses

  9. Understand Built-in Metrics, Counter, Trend, Retry Mechanism

  10. Design Threshold on Checks to pass/fail load test

  11. Test Life Cycle, SetUp, TearDown, Main Function

  12. Fixed RPS with Example

  13. InfluxDB, Grafana, Design Dashboard

  14. K6, InfluxDB, Grafana on Amazon EC2

  15. Understand Load-impact to design and execute scripts on Cloud from the various geographic location

  16. Define tags and groups for better filtering

  17. Performance Test Framework design using Postman to K6 Converter

  18. Real-time project and Automated Performance Testing Framework Design

  19. Understand Virtual Users, Runners, Debugging Scripts


1. Write your load test

Use the k6 Javascript API to write simple and realistic load test.

export let options = {

  thresholds: {

    "http_req_duration": ["p(90)<300"],

    "failed requests": ["rate<0.15"],



2. Define Pass and Fail criteria for performance tests

- 95th percentile response time must be below 1s.
- Less than 0.15% request errors.

3. Execute the test. Verify Pass/ Fail behaviour.

Test many load configurations to ensure your performance goals in multiple situations.

Running the test (50VUs, 2m), please wait...

Test Run Successful

Total thresholds: 2.  Passed: 2.  Failed: 0.

4. Automate your performance and load tests

Run your tests frequently to be confident in your system's performance.

Schedule your test execution and integrate your tests into CI pipelines.

Performance test Execution Run 1

Checkout API. 2 of 4 thresholds failed.

Performance test Execution Run 2

Checkout API. 4 of 4 thresholds passed.

5. Receive alerts on performance regressions

Configure your notifications and get alerts if any change breaks your performance goals.

6. Visualize Test Results

Host Grafana and share with stakeholders to view live test execution and test metrics

Who this course is for:
  • Developers - Write tests in ES6 Javascript to simulate real-world scenarios.
  • DevOps & SREs - Automate your tests to ensure that your infrastructure and application shows excellent performance.
  • Software Testers & QAs - Create tests faster with our browser recorder , converters and ES6 JS Scripts
  • Students and Freshers - Highlight your resume with Performance Testing.