Kata 2: Testing the Happy Path

Kata 2: Testing the Happy Path

The App

SmartFashion is a clothes store. It has an API which can be used by their own website or other websites they have partnered with, hence the need for the API.

The API is basically a CRUD (Create, Read, Update, Delete) API.

Basic Clients can:

  • Search for items
  • Buy items

Admin Clients can also:

  • Add items
  • Remove items
  • Update items

Problem Statement

According to Wikipedia,m Happy-Path Testing, is "a well-defined test case using known input, which executes without exception and produces an expected output". Your job is to create a suite of tests for the most common scenarios. You can read up on the Best Practices of Scenario-Based Testing before you begin.


Highlight the text below to reveal the clues:

  • One user case example could be: Search item -> Buy item -> Confirm purchase worked
  • Make sure you have a very good test coverage of the whole API.