Skip to content

arun918kumar/SpringBoot_CRUD_CucumberDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBoot CRUD App with Cucumber Integration

This sample project demonstrates the integration of Cucumber with a Spring Boot CRUD application using Spring Data JPA. The application provides RESTful API endpoints for managing student records.

Table of Contents

API Endpoints

  1. GET all Students: http://localhost:8080/student
  2. POST save Student: http://localhost:8080/student
  3. PUT update an existing student: http://localhost:8080/student
  4. DELETE delete an existing student: http://localhost:8080/student

Explore the API using the Swagger documentation available at http://localhost:8080/swagger-ui/index.html.

image

Integration Testing with Cucumber

The project utilizes the Cucumber framework to develop integration test cases. After executing:

./gradlew test

The Cucumber test report can be accessed at build/reports/cucumber/cucumber-reports.html

image

Getting Started

Build and Run the Application

Before running the application, make sure you have Java and Gradle installed.

# Build and run the app
./gradlew bootRun

Execute Cucumber Tests

To run Cucumber tests and generate a report:

# Execute cucumber tests and generate a report
./gradlew test

Example Usage

The following commands demonstrate how to build, run the application, and execute Cucumber tests.

# Build and run the app
./gradlew bootRun

# Execute cucumber tests and generate a report
./gradlew test