
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Configure Apache Maven on your local system by downloading the Apache Maven binary, unzipping it, setting the mvn home system variable, updating the path, and verifying with a command.
Download the JetBrains IntelliJ IDEA community edition 2024.3.5 from the official website. Unzip the zip file, then launch the ide64 executable from the bin directory to complete the setup.
Install Postman locally by downloading the installer from the official website, set up the tool on your system, and send a request to view the response and status code.
Explore how the fluent http client wraps the Apache http client to write readable, builder-pattern tests for APIs, including sending requests, adding headers, and validating status codes.
Understand the structure of HTTP requests and responses, including the request line with method, URL, and version, headers, and optional body, and the response with status line, headers, and body.
Start Micronaut app with Java -jar, set a port with Micronaut server port, and use swagger UI to test add pet (json/xml) and get all pets via Bruno or Postman.
Master API testing with WireMock by configuring a 204 no content response for a get request, using accept headers, content-type, and stub management to validate responses.
Learn to enhance WireMock stubs by attaching a custom response header using with header and with headers. Verify the header in the response to simulate real-world api behavior.
Configure a WireMock stub to return a custom response body in multiple formats (base64, JSON node, bytes, string) and validate a 200 ok response with assertions.
Unlock the power of API testing with our comprehensive course, "Mastering WireMock for Effective API Testing." This course is designed to take you from the basics to advanced techniques, ensuring you can leverage WireMock to its fullest potential.
WireMock is a popular open-source tool for API mock testing. It helps create stable test and development environments, isolate from unreliable third parties, and simulate non-existent APIs.
WireMock supports creating mock APIs in code, via its REST API, as JSON files, and by recording HTTP traffic. It has a rich matching system and can dynamically generate complex responses using Handlebars-based templating. Integration is easy due to its numerous extension points and comprehensive APIs. WireMock spans across multiple programming languages and technology stacks. It can run as a library or client wrapper in many languages, or as a standalone server
Course Modules:
Introduction to WireMock: Understand what WireMock is, its use cases, and how to set it up.
Basic Stubbing and Request Matching: Learn to create simple stubs and match requests using URL, method, headers, and body.
Advanced Request Matching: Dive into JSON schema matching, form parameters, and XPath/JSONPath matchers.
Response Templating: Master basic and advanced response templating with functions and helpers.
Stateful Behavior and Scenarios: Explore defining scenarios, stateful stubs, and global state management.
Extensions and Customization: Create custom matchers and transformers, and use the Extension API.
Integration with Other Tools: Integrate WireMock with JUnit, other testing frameworks, and CI/CD pipelines.
Mocking Different Protocols: Mock HTTP/HTTPS protocols.
WireMock Cloud: Get an overview of WireMock Cloud and learn how to set it up and use it.