-
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
--export-environment some variable will disappear because of merge of global and environment variables #1965
Comments
looks like if both a Postman Global and Postman Environment file is included in the run, and the --export-environment flag is included, it will overwrite the top variables in the Postman Environment with each of the variables found in the Postman Global file. Tried including a --export-globals flag to see if that fixed it, it did not. Temp work around for now might be including dummy variables at the top of your Postman Environment file, which you're fine with having overwritten. |
@rbalicante882012 @akaczinski I tried to reproduce this problem but had no success. Below are the steps I tried to reproduce the problem,
It seems to me that Newman exported the correct environment after the collection run. Please tell me if I am missing anything. And also make sure that you are not deleting the missing variables from your script while running collection (using |
Thanks for the effort but I found a simple trick. I mixed global to environment 👍 @akaczinski I also noticed it. Some environment variables in the top are merged to the global. |
@rbalicante882012 I am glad that you found the workaround. But it would be great if we can reproduce this at our end so that we can fix it. Feel free to reach out to us if you can provide exact steps or a sample collection and environment to reproduce the problem. |
newman -v
): 4.4.0newman run ${WORKSPACE}/collection/pcrf/PCRF_Instantiation.postman_collection.json -e ${WORKSPACE}/collection/pcrf/PCRF_GENERATED.postman_environment.json --export-environment ${WORKSPACE}/collection/pcrf/PCRF_GENERATED.postman_environment.json
--reporters cli,junitfull --reporter-junitfull-export ${WORKSPACE}/allure-results/outputfile-instantiation.xml --color on -x --verbose
Here's my environment variable
after using --export-environment
The text was updated successfully, but these errors were encountered: