-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Environment and Data doesn't work together. #1973
Comments
Do note the same collection and data file work perfectly fine in Postman. |
Finally found a solution. I observed the first column of the csv is being ignored and so I just duplicated the first column, in nth column and it worked. Weird. |
It’s weird. Can you post a sample collection and the errant data file as well as your fix? cc @codenirvana |
It contains confidential data. I'll try to make a similar request / data file. Can you confirm that it works as intended for you though? |
hi, I was having the same issue like you, but today it started working for me... maybe the issue got resolved in the meantime? |
Nothing was released since March 25. @lucietriskova - can you share a scaled down variant of a collection that was causing this issue? |
@shamasis unfortunately it was also a collection for verification of login functionality, so confidential data :/
|
Could this possibly be a file encoding issue @lucietriskova - perhaps it was generated on a non-windows machine or saved from a machine that has a locale setting that is not supported? I know that it got fixed for you, but I can also imagine that it must have been frustrating at the time when it wasn’t working. So, if you can remove the sensitive data from your CSV file and send me a copy. In fact, if you want, you can send it to help@getpostman.com referencing this issue and ping back here. I will check back with the team and try out the file. |
This happens for me when, I copy data from an excel, save it in a csv file, specifically csv utf-8. |
Can you share a scaled-down collection using some echo endpoint which we can use to reproduce this issue? |
Hey @siddhant-curious, @Avinger27 If you're able to provide some steps/scaled-down collection to reproduce the issue, we can open it up and take a look but for now,I'm going to close the issue. |
Running
newman run collection.json -e env.json -d userdata.csv
doesn't take values from data file but instead use the initial value of the collection only.Both the environment and data file contain 'user_id' variable which is used while forming the request.
newman -v
):4.4.1
Windows 10 Pro, 64Bit
CLI
Always
Data variables value take precedence over Environment value
newman run collection.json -e env.json -d userdata.json
Sample Request :
{ username: "{{user_id}}", pwd: "{{pin}}" }
Environment contains variables :
user_id
,pin
,url
etc.Data File:
The text was updated successfully, but these errors were encountered: