Skip to content

Automated REST API tests in Postman for an E-commerce website called Automation Exercise.

Notifications You must be signed in to change notification settings

RobertGitH/AutomationExerciseAPI

Repository files navigation

💎 Automation Exercise - REST API Testing

💠 Automated API tests created in Postman

🌍 Website home page

homepage

ℹ️ About this project

The project was made to practice API testing skills in Postman. Automated tests were written for the test scenarios shown below. The tests were run directly in the Postman app and via the command-line Collection Runner (Newman), which allows you to run and test a Postman Collection directly from the command-line.

1️⃣ Postman:

postman_x

2️⃣ Newman:

newman run AutomationExercise_API_Testing.postman_collection.json -e AutomationExercise.postman_environment.json

newmanX1 newman_7-13 newman_14

✅ API 1: Get All Products List

✅ API 2: POST To All Products List

✅ API 3: Get All Brands List

✅ API 4: PUT To All Brands List

✅ API 5: POST To Search Product

✅ API 6: POST To Search Product without search_product parameter

✅ API 7: POST To Verify Login with valid details

✅ API 8: POST To Verify Login without email parameter

✅ API 9: DELETE To Verify Login

✅ API 10: POST To Verify Login with invalid details

✅ API 11: POST To Create/Register User Account

  • API URL: https://automationexercise.com/api/createAccount
  • Request Method: POST
  • Request Parameters: name, email, password, title (for example: Mr, Mrs, Miss), birth_date, birth_month, birth_year, firstname, lastname, company, address1, address2, country, zipcode, state, city, mobile_number
  • Response Code: 201
  • Response Message: User created!

✅ API 12: DELETE METHOD To Delete User Account

✅ API 13: PUT METHOD To Update User Account

  • API URL: https://automationexercise.com/api/updateAccount
  • Request Method: PUT
  • Request Parameters: name, email, password, title (for example: Mr, Mrs, Miss), birth_date, birth_month, birth_year, firstname, lastname, company, address1, address2, country, zipcode, state, city, mobile_number
  • Response Code: 200
  • Response Message: User updated!

✅ API 14: GET user account detail by email

About

Automated REST API tests in Postman for an E-commerce website called Automation Exercise.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published