michaelruocco / gradle-postman-runner

A gradle plugin to run Postman collections
MIT License
16 stars 14 forks source link

Management of Data and JavaScript Libraries while executing Data Driven Postman Collections #3

Open RJ05 opened 7 years ago

RJ05 commented 7 years ago

Hi,

Is there a way to specify location of data files used by Postman Collections or we may have to enhance to the whole solution to incorporate the same.

Thanks, Rahul Jain

simomat commented 7 years ago

Are you talking about the collection specification files itself?

RJ05 commented 7 years ago

Various other command line arguments which Newman provides https://www.npmjs.com/package/newman

-g <source>, --globals <source> Specify file path or URL for global variables. Global variables are similar to environment variables but has a lower precedence and can be overridden by environment variables having same name.

-d <source>, --iteration-data <source> Specify a data source file (CSV) to be used for iteration as a path to a file or as a URL. Read More

-n <number>, --iteration-count <number> Specifies the number of times the collection has to be run when used in conjunction with iteration data file.

RJ05 commented 7 years ago

PFA, Screenshot of execution some random characters on command prompt:-

image

simomat commented 7 years ago

Good point, I didn't use newman for a while. These options must be new and should be integrated.

Regarding the strange chars in the terminal: I'm quite sure that's an issue with the terminal, that cannot interpret color codes or can't show unicode. Both can be disabled with the options.

sakthiveltk commented 6 years ago

I made required changes with new node plugins update and accept data file. Let me know, how I could contribute to commit the code and publish the plugins.

simomat commented 6 years ago

That's great. I'll just accepted the requests for now and trust it will work. I'm out for the weekend, so I can't check it by myself. In general we have a lack of automatic testing the plugin. I was playing with the gradle plugin testing mechanism lately, but it's far from being ready...

sakthiveltk commented 6 years ago

Ok. Thats is not my pull request. :). My pull request with title "Management of Data and JavaScript Libraries while executing Data Driven Postman Collections #3 "

sakthiveltk commented 6 years ago

Commit done with my changes and tested with my repository. You can merge the changes from my forked repository or pull-request.

sakthiveltk commented 6 years ago

Hope you merge and pushing the changes to plugin repository.

mventura912 commented 6 years ago

Are there plans to merge these changes and release a new version?

kalyankix commented 5 years ago

Can this pr be merged? Also, curious if csv file support can be added.

kalyankix commented 5 years ago

@simomat, can you please get this one merged.