# Data driven testing cannot upload file from Newman cli

**URL:** <https://community.postman.com/t/data-driven-testing-cannot-upload-file-from-newman-cli/21941>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [March 26, 2021, 2:46pm UTC](https://community.postman.com/t/data-driven-testing-cannot-upload-file-from-newman-cli/21941 "2021-03-26T14:46:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pankajjp](https://avatars.discourse-cdn.com/v4/letter/p/cdc98d/32.png) [@pankajjp](https://community.postman.com/u/pankajjp)\
**Post date:** [March 26, 2021, 2:46pm UTC](https://community.postman.com/t/data-driven-testing-cannot-upload-file-from-newman-cli/21941/1 "2021-03-26T14:46:50Z")

</div>

i am doing data driven testing on a postman collection have 15 api calls, i have done testing manually(postman runner) by selecting data file (json) contaning several variable values ,eg empname (10 values) desingation(10 values,salary(10 values) in 3 columns, i can succesfully run the test when i open postman runner and select this json data file.but i want to automate this process through postman CLI is there a way i can select this file (json data file) through command line and pass it to the collection having 15 api call? please guide ,thanks.

---

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [March 26, 2021, 2:52pm UTC](https://community.postman.com/t/data-driven-testing-cannot-upload-file-from-newman-cli/21941/2 "2021-03-26T14:52:58Z")

</div>

@pankajjp Welcome to the community 🥳

You can pass the file as input with command -d along with the existing newman command with collection file, environment/global file (if applicable). Even you can mentioned the number of iterations using -n

You can try reading [this](https://learning.postman.com/docs/running-collections/using-newman-cli/command-line-integration-with-newman/)

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/b/6/b697e4800bb1a4d823c5a3efbb5afd2832163cc6.png)
