Skip to content

Collection runner does not identify the JSON format when selecting Data file #4591

@cbarrerah-sogeti

Description

@cbarrerah-sogeti

Please read through the guidelines before creating a new issue.

Describe the bug
When selecting a JSON file as "Data" for the collection runner, it does not recognize the format, neither autodetects the number of items

To Reproduce
Steps to reproduce the behavior:

  1. Go to Collection runner with any collection
  2. Click on File button to select a json file(example.json) that contains:

[
{
"labelA": "valueA1",
"labelB": "valueB1"
},
{
"labelA": "valueA2",
"labelB": "valueB2"
}
]

  1. click on Open to use it for Collection Runner
  2. Observe as the "Data File Type" says Undetermined, and the iterations remain at 0

Expected behavior
When selecting a valid json, the format is recognized and the iterations selects the number of items in the main array detected by default.
This is the current behaviour with csv files, that are corectly identified .

Screenshots
If applicable, add screenshots to help explain your problem.
image

App information (please complete the following information):

  • App Type [e.g. Chrome App, Native App]: Native App
  • Postman Version [e.g. 6.0.1]
    Postman helps you develop APIs faster
    Postman for Windows
    Version 6.0.10
    win32 10.0.15063 / x64

Additional context
When manually selecting the JSON format, when going to preview, it correctly identifies the items in the JSON but you still have to fill the iterations field manually.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions