Support for Using a Single Large JSON File with Both Global and Iteration-Specific Parameters in Postman Collection Runner

Description:
Currently, Postman Collection Runner supports loading iteration data from a JSON array file, where each item corresponds to a single iteration. However, there is no native support for using a single large JSON file that contains both global (constant) parameters and iteration-specific data together.

Feature Request:
We would like Postman to support a unified JSON data file format for Collection Runner that includes:

  • A section for global, constant parameters (e.g., configuration flags like "errorChecker": "enabled", "logger": "disabled") that remain the same across all iterations.
  • A separate section for iteration-specific test data (e.g., an array of objects with user-specific or test-case-specific fields).

This would allow users to provide a single JSON file with both constant configuration and dynamic iteration data, improving convenience and reducing complexity by eliminating the need to manage multiple environment variables or separate data files.

Example structure:

json

{
  "constants": {
    "errorChecker": "enabled",
    "logger": "disabled"
  },
  "testData": [
    {"name": "Bob", "age": "12"},
    {"name": "Joe", "age": "16"}
  ]
}

Ideal behavior: Postman would automatically apply the constants fields as global values for all iterations, and successively use each entry of testData as iteration input.

1 Like

Hi @bako-csaba-ext :waving_hand:. Welcome to the Postman Community :postman:.

This is an interesting feature request! I’ve communicated this to the relevant team!

Thank you for taking the time to clearly flesh out your idea. It is super helpful!

1 Like