Book Image

Writing API Tests with Karate

By : Benjamin Bischoff
Book Image

Writing API Tests with Karate

By: Benjamin Bischoff

Overview of this book

Software in recent years is moving away from centralized systems and monoliths to smaller, scalable components that communicate with each other through APIs. Testing these communication interfaces is becoming increasingly important to ensure the security, performance, and extensibility of the software. A powerful tool to achieve safe and robust applications is Karate, an easy-to-use, and powerful software testing framework. In this book, you’ll work with different modules of karate to get tailored solutions for modern test challenges. You’ll be exploring interface testing, UI testing as well as performance testing. By the end of this book, you’ll be able to use the Karate framework in your software development lifecycle to make your APIs and applications robust and trustworthy.
Table of Contents (15 chapters)
1
Part 1:Karate Basics
7
Part 2:Advanced Karate Functionalities

Index

As this ebook edition doesn't have fixed pagination, the page numbers below are hyperlinked for reference only, based on the printed edition of this book.

Symbols

/magician endpoint 196

/magicians endpoint 196

A

And keyword 12

anonymous functions 154

Apache JMeter

URL 270

API under test

exploring 56

Appium

reference link 238

array

data, collecting into 174, 175

arrow function 198

B

base URL

separating, from path 67

Bash script

creating 212

running, in VS Code on Windows 213

batch file 211

running, in PowerShell 212

batch script

creating, for Windows 211, 212

behavior driven development (BDD) 10

features 11

Gherkin language 10

scenarios 11

scenarios, writing 14

steps 11

tags 11

versus Karate 9

But keyword 12

C

Carriage Return Line Feed (CRLF) 222

Catch-all steps (*) 12

Chrome

custom executable location, selecting 240

Karate driver...