Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
GRPC Testing with K6
Rating: 3.6 out of 5(16 ratings)
158 students

GRPC Testing with K6

Provide confidence through repeatable automated tests
Created byJamie Macdonald
Last updated 3/2023
English

What you'll learn

  • How to tests gRPC Web-Services using K6.
  • How to Automate gRPC Web & Micro Services using k6
  • How to use the specific proto type "any" and "oneof" in our k6 tests.
  • How to create a framework to host all of your k6 gRPC tests.
  • Automate your k6 gRPC tests using Kubernetes cron job?
  • Automate your gRPC tests using Jenkins.
  • Take a deep dive into how spike, load, soak and smoke test run inside of gRPC
  • Start bullet proofing your tests so that you capture all exceptions, not surfaced by K6 and bring them back into the K6 fold
  • Learn how to share a single gRPC connection over all iterations of a spike test
  • Learn how to share a single gRPC connection per user over a spike test
  • Learn how to data drive your smoke tests
  • Learn how to randomise your parameters in within a spike test
  • Learn the theory of why having an automated process for smoke testing your gRPC test affords confidence, repeatability amongst other great benefits.
  • Learn how to run your gRPC test as background tasks, so that you can maximise performance of your tests

Course content

12 sections40 lectures11h 42m total length
  • Introduction6:57

    Explore testing gRPC services with K6, covering data-driven, smoke and spike tests, and automating with Jenkins, Docker, and Kubernetes within a reusable framework.

Requirements

  • General programming knowledge would be handy although I will step through how to install and work the required software, line by line.
  • This course is run using a Mac book pro, if you want to use windows, I recommend git bash, linux sub system or converting part relating to the framework into a windows related scripts.

Description

In this course we take a look at what K6 has to offer the world of automation for gRPC tests.   This course has been written so that windows, mac and linux users can follow along.  I also explore other technologies that we can use to enhance this product into a framework that we can use to add more functionality to our arsenal. 

What do you want from a gRPC test framework?:

  • A counter of successes and failures, with a no colour option. 

  • Negative and positive test pass as intended.

  • Exit framework on first tests failure.

  • Dependant gRPC requests shown as part of your system

  • Data driven gRPC tests

  • The ability to run your gRPC framework on Kubernetes or Jenkins.

  • The ability to run our gRPC tests in parallel background tasks

  • The ability pin point exact errors on gRPC status code.

  • The ability to stage calls, so that interdependencies are maintained.

What do you want from your scaled up gRPC performance tests?:

  • The ability to have reliable tests that will report all errors and in turn give a true representation of your gRPC reliability.

  • The ability make these test simulate randomness of data input.

  • The option to share connection on a per user basis or over all iterations.

  • Self recovering tests that try to recover on failure

What do you want from your gRPC Micro Services?:

  • The ability to have confidence that a change has not broken anything.

  • The ability to say to managers in a matter of minutes that it works as it should.

  • the ability to work efficiently and independently from the consuming/producing team.

  • The ability to run tests as part of your CI/CD system

  • The ability to run tests at  a scheduled time of day.

If the answer is yes to any of the above then this is the course for you.  Also look a the rarer proto types such as "any" and "typeOf".

Who this course is for:

  • Beginner to Expert developer and anything in between.
  • Test Automation Engineers
  • Software Engineers