# Running the Same Collection with Multiple Test Data JSONFile

**URL:** <https://community.postman.com/t/running-the-same-collection-with-multiple-test-data-jsonfile/58942>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections\
**Created:** [March 18, 2024, 9:27am UTC](https://community.postman.com/t/running-the-same-collection-with-multiple-test-data-jsonfile/58942 "2024-03-18T09:27:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwinijyotik25](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@ashwinijyotik25](https://community.postman.com/u/ashwinijyotik25)\
**Post date:** [March 18, 2024, 9:27am UTC](https://community.postman.com/t/running-the-same-collection-with-multiple-test-data-jsonfile/58942/1 "2024-03-18T09:27:30Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Running the Same Collection with Multiple Test Data Files

- **Introduce The Question** : I’m currently working on a project where I need to run a Postman collection with different sets of test data JSON files. However, I’m unsure about the best approach to achieve this efficiently. I’ve tried manually uploading each test data file before running the collection, but this process is time-consuming and prone to errors. I’m seeking guidance on how to automate the process of running the same collection with multiple test data files and can it generate the multiple test runs.

I am using Newman. Help me on this

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [March 18, 2024, 10:22am UTC](https://community.postman.com/t/running-the-same-collection-with-multiple-test-data-jsonfile/58942/2 "2024-03-18T10:22:16Z")

</div>

Hi @ashwinijyotik25. Welcome to the Postman Community.

I see you’re already using Newman to run the collection against specific data files on the command line. Are you looking to run it against other data files sequentially immediately after the previous runs?

---

<div class="post-metadata">

**Author:** ![ashwinijyotik25](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@ashwinijyotik25](https://community.postman.com/u/ashwinijyotik25)\
**Post date:** [March 18, 2024, 10:40am UTC](https://community.postman.com/t/running-the-same-collection-with-multiple-test-data-jsonfile/58942/3 "2024-03-18T10:40:05Z")

</div>

Hi @gbadebo-bello I am seeking to execute the data files sequentially right after the preceding runs."

---

<div class="post-metadata">

**Author:** ![gbadebo-bello](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gbadebo-bello/32/12175_2.png) [@gbadebo-bello](https://community.postman.com/u/gbadebo-bello)\
**Post date:** [March 18, 2024, 11:43am UTC](https://community.postman.com/t/running-the-same-collection-with-multiple-test-data-jsonfile/58942/4 "2024-03-18T11:43:26Z")

</div>

Okay. Newman does not inherently provide this feature, but you can achieve this using specific scripting commands on the CLI.

You can use the && operator to have multiple commands run in parallel. For example

_newman run Collection1.postman\_collection.json && newman run Collection2.postman\_collection.json_

Will run collection 1 and collection 2 sequentially. This way, you can pass separate data files into collection 1 and collection 2

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [April 17, 2024, 11:43am UTC](https://community.postman.com/t/running-the-same-collection-with-multiple-test-data-jsonfile/58942/5 "2024-04-17T11:43:34Z")

</div>

Closed on April 17, 2024, 11:43am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
