An open API service indexing awesome lists of open source software.

https://github.com/youssefm2000/nahdiapitask

Automate Api Posts API
https://github.com/youssefm2000/nahdiapitask

cucumber jackson java maven-plugin pojo restassured-framework

Last synced: about 2 months ago
JSON representation

Automate Api Posts API

Awesome Lists containing this project

README

          


test-light


API Automation Testing With Cucumber Framework

## πŸ“Œ Features
- ### πŸ”οΈ Covered Test case in this project :
#### βœ…Test Case 1 : Create a new post
Given the API is available
When I create a post with title "foo", body "bar" and userId 1
Then the response status should be 201
And the response should contain title "foo" and body "bar"

#### βœ…Test Case 2 : Get all posts
Given the API is available
When I retrieve all posts
Then the response status should be 200
And the total number of posts should be 100

#### βœ…Test Case 3 : Get post with ID 20
Given the API is available
When I retrieve the post with ID 20
Then the response status should be 200
And the response should contain ID 20

#### βœ…Test Case 4 : Get non-existent post
Given the API is available When I retrieve the post with ID 9999 Then the response status should

## πŸ›  Tech Stack

- Java
- Cucumber
- Rest Assured
- Maven
- JUnit
- POJO
- Jackson

## πŸ“‚ Project Structure

![Image](https://github.com/user-attachments/assets/24e97b90-8726-41db-beac-1759bdd73271)

### πŸ—οΈ Project Design:

* Page Object Model (POM) design pattern

### 🚧 Requirements

* Eclipse / IntelliJ IDEA (for code development)

### πŸ“ Allure Report:

![allureReport](https://github.com/user-attachments/assets/8132c19a-18b3-416d-ab91-60f230dbe6da)

### πŸ“ Cucumber Report:

![Image](https://github.com/user-attachments/assets/b6e1ef5c-309b-4883-98f3-a8615504c4da)

### πŸš€ For Watching Running Test Cases:

https://youtu.be/FvKjAGaXQBQ