{"id":24510061,"url":"https://github.com/am4nn/run-postman-collection-concurrent","last_synced_at":"2026-05-11T09:03:42.011Z","repository":{"id":272996620,"uuid":"918418377","full_name":"Am4nn/Run-Postman-Collection-Concurrent","owner":"Am4nn","description":"Run Postman collections from the command line with support for various authentication types and detailed execution logs. Generates a summary report with success/failure counts and execution times.","archived":false,"fork":false,"pushed_at":"2025-01-17T22:26:40.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T23:27:28.798Z","etag":null,"topics":["api","api-monitoring","api-testing","automation","axios","benchmarking","concurrency","http-requests","nodejs","open-source","postman","postman-collection","script","testing"],"latest_commit_sha":null,"homepage":"https://amanarya.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Am4nn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-17T22:24:46.000Z","updated_at":"2025-01-17T22:33:19.000Z","dependencies_parsed_at":"2025-01-17T23:37:54.289Z","dependency_job_id":null,"html_url":"https://github.com/Am4nn/Run-Postman-Collection-Concurrent","commit_stats":null,"previous_names":["am4nn/run-postman-collection-concurrent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Am4nn%2FRun-Postman-Collection-Concurrent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Am4nn%2FRun-Postman-Collection-Concurrent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Am4nn%2FRun-Postman-Collection-Concurrent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Am4nn%2FRun-Postman-Collection-Concurrent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Am4nn","download_url":"https://codeload.github.com/Am4nn/Run-Postman-Collection-Concurrent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243708882,"owners_count":20334921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-monitoring","api-testing","automation","axios","benchmarking","concurrency","http-requests","nodejs","open-source","postman","postman-collection","script","testing"],"created_at":"2025-01-22T00:24:47.796Z","updated_at":"2026-05-11T09:03:41.889Z","avatar_url":"https://github.com/Am4nn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postman Collection Runner\n\nThis project is a Node.js utility to execute requests from a Postman collection concurrently. It reads the Postman collection JSON file, processes the requests (including handling placeholders and authentication), and executes them using the `axios` library. The tool provides detailed logs for each request's execution status (success or failure), tracks execution time, and generates a comprehensive summary report.\n\n## Features\n\n- Parse Postman collection JSON and extract requests and global information\n- Replace placeholders (e.g., `{{PLACEHOLDER}}`) in the collection with environment variables\n- Support for multiple authentication types: API Key, Bearer, Basic Auth\n- Execute requests concurrently using `Promise.allSettled` for better performance\n- Log detailed information for each request, including success/failure, execution time, and response data\n- Generate a summary report with:\n  - Total execution time\n  - Successful/failed requests\n  - Average time per request\n\n## Prerequisites\n\nBefore you run the project, make sure you have the following installed:\n\n- [Node.js](https://nodejs.org/) (v14 or higher)\n- [npm](https://www.npmjs.com/) (comes with Node.js)\n\n## Installation\n\n1. Clone the repository to your local machine:\n\n   ```bash\n   git clone https://github.com/your-username/postman-collection-runner.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd postman-collection-runner\n   ```\n\n3. Install the required dependencies:\n\n   ```bash\n   npm install\n   ```\n\n## Usage\n\n### 1. Prepare the Postman Collection\n\nMake sure you have a Postman collection JSON file. If you don't have one, you can export a collection from Postman by following these steps:\n\n- Open Postman.\n- Go to your collection and click on the three dots (`...`).\n- Select `Export` and choose the format `Collection v2.1 (recommended)`.\n- Save the JSON file.\n\n### 2. Set Up Environment Variables\n\nCreate a `.env` file in the root directory to define environment variables used in your Postman collection (e.g., replacing `{{PLACEHOLDER}}` values). Example:\n\n```env\nAPI_KEY=your_api_key\nBASE_URL=https://api.example.com\n```\n\n### 3. Run the Script\n\nPlace your Postman collection JSON file in the `postman-collections` directory or update the `COLLECTION_PATH` variable in the `index.js` file to point to your file.\n\nTo run the utility, use the following command:\n\n```bash\nnpm start\n```\n\nThis will execute the requests in the collection concurrently and log the results in the terminal. You will also see a summary report at the end of the execution.\n\n### 4. Customization\n\n- **Collection Path**: Update the `COLLECTION_PATH` variable in the `index.js` file to point to your collection file.\n\n- **Authentication**: The tool supports multiple authentication types (API Key, Bearer Token, Basic Auth). Make sure to include the appropriate auth information in your Postman collection.\n\n## Example Output\n\nThe output will show detailed logs for each request and a summary at the end:\n\n```yaml\n✅ [Request 1] - Success\n   Time Taken: 123.45 ms\n   Data: User 1 Details\n\n❌ [Request 2] - Failed\n   Time Taken: 98.23 ms\n   Error: Network Error\n\n✅ [Request 3] - Success\n   Time Taken: 65.12 ms\n   Data: User 2 Details\n\nSummary Report:\nTotal Requests: 3\nSuccessful Requests: 2\nFailed Requests: 1\nTotal Execution Time: 350.23 ms\nAverage Time per Request: 106.56 ms\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam4nn%2Frun-postman-collection-concurrent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fam4nn%2Frun-postman-collection-concurrent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam4nn%2Frun-postman-collection-concurrent/lists"}