Giter VIP home page Giter VIP logo

postman-newman-automation-thecatapi's Introduction

API Automation using POSTMAN and running tests using Newman

How to run Postman Collection using Postman tool?

  1. Open Runner
  2. Drag and Drop your collection
  3. Select the tests
  4. Hit Run button API Automation using POSTMAN and running tests using Newman

How to run Postman Collection using Newman CLI tool?

  1. Open Terminal/CMD
  2. Install newman npm install -g newman
  3. Go to root path of the project
  4. Enter command newman run TheCatAPI.postman_collection.json --environment TheCatAPI_Env.postman_environment.json
  5. CLI will show below results

API Automation using POSTMAN and running tests using Newman Console Output 1

API Automation using POSTMAN and running tests using Newman Console Output 2

How to generate HTML report using npm newman-reporter-htmlextra with Newman?

  1. Open Terminal/CMD
  2. Install reporters npm install -g newman-reporter-htmlextra
  3. Go to root path of the project
  4. Enter command newman run TheCatAPI.postman_collection.json --environment TheCatAPI_Env.postman_environment.json -r htmlextra --reporter-htmlextra-export .\TestResults\TestResult.html

API Automation using POSTMAN and running tests using Newman

API Automation using POSTMAN and running tests using Newman

API Automation using POSTMAN and running tests using Newman

How to generate CSV report using npm newman-reporter-csv with Newman?

  1. Open Terminal/CMD
  2. Install reporters npm install -g newman-reporter-csv
  3. Go to root path of project
  4. Enter command newman run TheCatAPI.postman_collection.json -r csv --reporter-csv-export .\testResults\TestResult.csv

Troubleshooting

Issue #1: When you run Postman collection using newman you may see error:

File C:\Users\admin\AppData\Roaming\npm\newman.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.

Solution: Follow step 1 to 3 given on https://www.c-sharpcorner.com/article/how-to-fix-ps1-can-not-be-loaded-because-running-scripts-is-disabled-on-this-sys/

postman-newman-automation-thecatapi's People

Contributors

codewithmmak avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

postman-newman-automation-thecatapi's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

None detected


  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.