Skip to content

This framework automates the execution of multiple Postman collections using Newman and generates HTML reports.

License

Notifications You must be signed in to change notification settings

kulwinder-singh17/newman-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Newman Collection Runner

This framework automates the execution of multiple Postman collections using Newman and generates detailed HTML reports. It recursively retrieves all collection files from the collections folder and executes them sequentially using the specified environment configuration.

Prerequisites

  • Node.js installed
  • Newman installed globally:
    npm install -g newman

Installation

  1. Clone the repository.
  2. Install dependencies:
    npm install

Project Structure

/collections         # Folder for Postman collection JSON files
/environment         # Folder for environment JSON files
index.js             # Main script to execute collections
newman.js            # Newman execution logic
config.js            # Configuration file for environment selection

Usage

  1. Add your Postman collections to the collections folder.
  2. Add your environment JSON to the environment folder.
  3. Update the envFile_name in config.js with your environment file name.
  4. Run the script:
    node index.js

Reports

HTML reports will be generated in the report folder, organized by date.

License

This script is licensed under the Apache License. See LICENSE.md for more details.

About

This framework automates the execution of multiple Postman collections using Newman and generates HTML reports.

Resources

License

Stars

Watchers

Forks