sanu1991
(sanu1991)
May 21, 2020, 6:38am
1
I am working in postman automation. I am running my collection using external data file. i want the same to do with newman. how can I pass external data file using newman CLI? please help.
1 Like
Hey @sanu199 ,
Welcome to the community!
All the Newman options can be found here on the repo:
<a href="https://www.postman.com/"><img src="https://assets.getpostman.com/common-share/postman-logo-horizontal-320x132.png" /></a><br />
_Manage all of your organization's APIs in Postman, with the industry's most complete API development environment._
# newman <sub>_the cli companion for postman_</sub> [![Build Status](https://github.com/postmanlabs/newman/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/postmanlabs/newman/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/postmanlabs/newman/branch/develop/graph/badge.svg)](https://codecov.io/gh/postmanlabs/newman)
Newman is a command-line collection runner for Postman. It allows you to effortlessly run and test a Postman collection directly from the command-line. It is built with extensibility in mind so that you can easily integrate it with your continuous integration servers and build systems.
## Table of contents
1. [Getting Started](#getting-started)
2. [Usage](#usage)
1. [Using Newman CLI](#using-newman-cli)
2. [Using Newman as a Library](#using-newman-as-a-library)
3. [Using Reporters with Newman](#using-reporters-with-newman)
3. [Command Line Options](#command-line-options)
1. [newman-options](#newman-options)
2. [newman-run](#newman-run-collection-file-source-options)
3. [SSL](#ssl)
4. [Configuring Proxy](#configuring-proxy)
This file has been truncated. show original
What you need to use for the data file is this command:
-d , --iteration-data
Specify a data source file (CSV or JSON) to be used for iteration as a path to a file or as a URL.
sanu1991
(sanu1991)
May 21, 2020, 8:43am
3
Thnaks. @danny-dainton . it is working fine.