Skip to content

EbrahimSalem1/Rest-Assured-Java-mini-CURD-Operations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Reqres Automated Tests

using API Rest-Assured with java OOP and TestNg

You Can Runs all APIs Test Cases from file API.xlm

#Test Case 1: GET method with List of users

  1. use RequestSpecification class
  2. use Response to get url 'https://reqres.in/api/users?page=2'
  3. use ResponseBody class to getBody Response
  4. use Assertion to Verify Response Body contains correct Response Body for users is successfully
  5. Print Response if you want see it

#Test Case 2: POST method for Creating a new user

  1. use JSONOBJECT class to put JsonBody request
  2. use RequestSpecification class and use Response to get url 'https://reqres.in/api/users'
  3. use ResponseBody to getBody Response
  4. use Verify extract response Body to Response Body is successfully
  5. Print Response if you want see it

Test Case 3: PUT method for updating an existing user

  1. use JSONOBJECT class to put JsonBody request
  2. use RequestSpecification class and use Response to get url 'https://reqres.in/api/users/2'
  3. use ResponseBody class to getBody Response
  4. use Verify extract response Body to Update Response Body is successfully
  5. Print Response if you want see it

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages