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:
- View or Checkout feature
- Book Transaction feature
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
If you have plenty of orders at the endpoint you could delete all the orders by using the delete_all_order.py
script.