Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rahul-barick/postman-newman

Automate API Test Cases with Postman and Newman
https://github.com/rahul-barick/postman-newman

automated-tests command-line-tool newman postman postman-bdd postman-collection postman-export postman-pre-request-script postman-test testing-tools

Last synced: about 7 hours ago
JSON representation

Automate API Test Cases with Postman and Newman

Awesome Lists containing this project

README

        

# postman-newman

Write API Tests with Postman and Newman

## Postman

1. Postman is a good tool which we mostly use to quickly test APIs to see the result returned by them, but it's actually way more powerful than that.
2. Making API is hard but Postman makes it simpler,easier.
3. You can simply test any API and see the response immediately.
4. You can create a collection of API endpoints and call them whenever you want to see the responses.

## Newman

1. We Write Tests in Postman, then export the collection and use Newman to run them directly from the command-line.

## Install Newman

```
npm i newman -g
```

# Command-Line Interface

```
newman run Collection_fileName.json -e Enviornment_fileName.json
```

![Screenshot](postman-newman.png)