Skip to content

Automated API testing for Automation Exercise using Postman and Newman.

License

Notifications You must be signed in to change notification settings

AgneKal/postman-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 API Testing with Postman and Newman

Automated API testing for Automation Exercise using Postman and Newman.

📖 About

This project contains Postman collections for testing the Automation Exercise website API. The goal is to automate API testing, ensuring the backend services work as expected and return the correct responses.


🚀 Prerequisites

Make sure you have the following installed before starting:


🔧 Installation

Clone the repository and install the required dependencies:

git clone https://github.com/AgneKal/postman-testing.git
cd your-repository-name
npm install

▶️ Running API Tests

1. Running Tests with Postman

  • Import the Postman collection from the /postman directory into your Postman app.
  • Use Postman to manually run the API requests.

2. Running Tests with Newman

To run the tests using Newman in the command line, execute the following:

npm test

You can also generate HTML reports with Newman:

newman run report

🧩 Test Structure

The test files are structured as follows:

📁 postman
 ┗📄 Automation-exercise.postman_collection.json    # Postman collection

Example API request:

{
    "method": "GET",
    "url": "https://automationexercise.com/api/products",
    "header": [],
    "body": {},
    "description": "Get all products"
}

📝 License

This project is licensed under the ISC License - see the LICENSE file for details.


🔗 Useful Links


👩‍💻 Author

Agne: Github

About

Automated API testing for Automation Exercise using Postman and Newman.

Topics

Resources

License

Stars

Watchers

Forks