REST Assured Techniques: Using WireMock API Mocking & JMeter Load Testing






Mocking application programming interface (API) endpoints is essential for developing, testing, and validating applications independently of external systems. Load testing of APIs is crucial for assessing an application's performance and reliability under high traffic conditions, ensuring that it can handle real-world use without degradation of service. Together, WireMock and JMeter provide a comprehensive approach to testing for mocking and load testing respectively. In this course, you will explore the art of mocking APIs using WireMock, learning how to set up a basic server and mock API endpoints with various HTTP requests and responses. You will employ JSON files for configuring responses and explore dynamic response creation through response templating. You will use request matching to fine-tune the behavior of your API mocks and stub APIs using both Java and JSON for enhanced maintainability. Next, you will master the use of Apache JMeter for performance and load testing. Starting with the installation and setup, you will build JMeter test plans, simulate user actions with Test Groups, and make API requests using Samplers. You will learn how to analyze the responses with Listeners and validate API performance under different loads using JMeter assertions. You will run your load tests using the JMeter graphical user interface (GUI) as well as the command line.




1.62

REST Assured Techniques: Using WireMock API Mocking & JMeter Load Testing

  • outline the importance and uses of application programming interface (API) mocking
  • set up a basic WireMock server with API stubs
  • mock endpoints using JSON files to configure requests and responses
  • use response templating for dynamically configuring responses
  • specify path parameters and query parameters in requests
  • use JSON to stub API endpoints
  • outline the importance of load testing and how to use Apache JMeter as part of this process
  • set up a Thread Group, Sampler, and Listener to be able to make API requests and view responses using JMeter
  • assert JSON, duration, and status codes with JMeter
  • use the JSON Extractor post-processor to access JSON from response data and use the extracted JSON to make other requests to the server
  • run load tests using the JMeter command line

  • it_straredj_02_enus