Technical requirements
The code examples for this chapter can be found in this book’s GitHub repository: https://github.com/PacktPublishing/Writing-API-Tests-with-Karate/tree/main/chapter10.
You will require the following:
- The system and IDE setup we completed in Chapter 2, Setting Up Your Karate Project
Creating the test scenario
For the test scenario of this chapter, we will keep it simple. We will use the so-called Jikan API (https://jikan.moe), which provides information about anime and manga movies, series, and books. As this demonstration should show some statistics about general API availability, we will not bother with its detailed request and response data for now and instead concentrate only on the response code of an individual endpoint.
This is the test scenario we will use:
Feature: Performance testing Scenario: Performance * url 'https://api.jikan.moe/v4/' * path &apos...