Book Api StudyCase

Installation

To run this project on your local machine, follow these steps:

  1. Clone the repo: git clone https://github.com/yahyakara/bookApiStudyCase

Parameters

  • -Dcucumber.filter.tags :Filter the test based on tags : @regression @smoke

To run test on the local

mvn clean test -Dcucumber.filter.tags="@regression"

To run test on the docker

Parameters

  • TAG :Filter the test based on tags : @regression @smoke
cd /bookApiStudyCase
ENV=uat TAG=@regression docker-compose up --build

Reports

Local (Allure should be installed)

cd /bookApiStudyCase/target allure serve

Docker

Dependencies

  • RestAssured
  • Cucumber
  • TestNg
  • Allure report
  • WireMock
  • Jackson
  • Lombok

Scenarios

  1. User can get book information with get book service
  2. Scenario: User can't add book similar book to list
  3. Add a book to the list with invalid payload
  4. User should not miss the book title or author
  5. Add a book to the list