Skip to main content

Posts

Showing posts from September, 2022

BDD Series (4) — karate API testing. Hands-on!

Photo by  Jason Briscoe  on  Unsplash In our previous post  Anatomy of a feature fil e, we talked about the feature files, the Gherkin syntax, and Gherkin keywords. In this post, we will see a quick overview of Intuit Karate based on Gherkin. Karate DSL uses Gherkin syntax, If you’re new to Cucumber & Gherkin, I highly recommend reading the previous post to understand terminologies. Why Karate Cucumber , the flagship BDD framework, popularized the  programming language-neutral , behavioral test constructs, written in  human languages  using Gherkin.  The  human-language  test steps mentioned in the  feature file  are backed by programming-language-dependent  Step-Definition  files, that are processed by the Cucumber engine. In today's world, development teams often work on Headless systems, which are comprised of only the backend APIs .  The Gherkin steps to test such systems are fixed. Such as but not limited to. Set API  URL Set request   HEADER Append request   PATH Set requ