Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple file support #2264

Closed
wants to merge 5 commits into from
Closed

Multiple file support #2264

wants to merge 5 commits into from

Conversation

adrijshikhar
Copy link
Contributor

fix #2215

Add multiple file support with --iteration-data flag. Right now it checks whether the location is array or not. If its an array then check whether it has an object inside it or not. If it has no object, then it is an array of location and data is parsed for each location and then passed on, and if not an array, location variable is treated as string.

@adrijshikhar
Copy link
Contributor Author

the issue i am facing is that when the test is performed, in forEach , async.waterfall is asynchronous and forEach is synchronous. So when the test is performed, callback is called, before forEach getting executed and empty array is passed. I have two possible solutions for this.

  1. To convert async.waterfall to await or promises
  2. make it recursive callback function and finally return the appended values.

I prefer the recursive way. I could really use some help.
@shamasis @codenirvana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

passing multiple csv files to a collection runner in newman
3 participants