Skip to content

Behaviour Driven Development for end-to-end API testing scenario with Gherkin syntax and pytest

Notifications You must be signed in to change notification settings

aifakhri/end-to-end-api-testing-with-gherkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Using Gherkin for End-to-End API Testing

Introduction

Using the keyword-drive-api-testing-framework to create Behaviour Driven Development (BDD) Testing with Gherkin syntax. The type of testing here is an end-to-end API testing type, where we imagine the API from our use case is used in a library application where the member can borrow, update and return the book available in the library.

There are two features that can be tested:

  1. View or Checkout feature
  2. Book Transaction feature

How To Run

To run all the tests use this command:

pytest

To run only view feature use this command:

pytest -m view

To run only transaction feature use this command:

pytest -m transaction

Notes

If you have plenty of orders at the endpoint you could delete all the orders by using the delete_all_order.py script.

About

Behaviour Driven Development for end-to-end API testing scenario with Gherkin syntax and pytest

Topics

Resources

Stars

Watchers

Forks