REST API Test Suite Generator
Generates comprehensive API test suites from OpenAPI specs using Postman Collection SDK and Newman CLI. Creates parameterized test scenarios with environment-specific variables, auth flows, and assertion chains.
Prerequisites
Node.js
Installation
Use the upstream install or setup path that matches your environment:
- npm install postman-collection --save
Requirements and caveats from upstream:
- var fs = require('fs'), // needed to read JSON file from disk
- Collection = require('postman-collection').Collection,
Basic usage or getting-started notes:
In this example snippet we will get started by loading a collection from a file and output the same in console.
javascript
myCollection;
Extracted from upstream docs: https://raw.githubusercontent.com/postmanlabs/postman-collection/HEAD/README.md
Documentation
Source
Source: agentskillexchange/skills — distributed by TomeVault.