Skip to content

ozlemgulp/api_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ozlemgulp

API Test Framework

Maven Maven 3.0 Plugin API RestAssured TestNG JsonPlaceholder

Testing and validating JsonPlaceholder REST services with RestAssured in Java.

Table of contents

General info

This is test automation framework skeleton.
JsonPlaceholder is Free fake API for testing and prototyping.
RestAssured used for the testing and validation of RESTAPIs.
TestNG framework used for running and designing tests.

Technologies

  • Java - version 8.0
  • Maven - version Apache Maven 3.6.3 Built with Maven
  • TestNg
  • RestAssured

Prerequisites

Setup

Git clone the repository to your local environment for further information refer to the link: https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository

git clone https://github.com/ozlemgulp/api_test.git

To build the artifact go to the project root folder and open cmd and run the command:

mvn clean install

Setup

TestRun

Test can be run with 2 option
1. Run tests from cmd:

mvn test

TestRun

2. Run test by using testng.xml
Import the project to IDE
find the testng.xml right click to file> Run As >TestNG Suite TestRun

TestReport

Maven surfire report created after each run under test-output folder
TestReport

Features

List of features ready and TODOs for future development

  • Awesome feature 1: Search for the user with username “​keyword​”
  • Awesome feature 2: Use the details fetched to make a search for the posts written by the  user.
  • Awesome feature 3: For each post, fetch the comments and validate if the emails in the  comment section are in the proper format.

To-do list:

Status

Project is: finished

Contact

Created by @ogpamuk - feel free to contact me!

About

JsonPlaceholder API testing with Restassured

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages