postmanlabs / newman

Newman is a command-line collection runner for Postman
https://www.postman.com
Apache License 2.0
6.89k stars 1.17k forks source link

Question : how to modify collection variable using newman CLI #2968

Open SureshRajpurohit85 opened 2 years ago

SureshRajpurohit85 commented 2 years ago
  1. Newman Version (can be found via newman -v):
  2. OS details (type, version, and architecture):
  3. Are you using Newman as a library, or via the CLI?
  4. Did you encounter this recently, or has this bug always been there:
  5. Expected behaviour:
  6. Command / script used to run Newman:
  7. Sample collection, and auxiliary files (minus the sensitive details):
  8. Screenshots (if applicable):
malvikach commented 2 years ago

@SureshRajpurohit85 Do u want to write/update the collection JSON file. Please do share an example along with the Newman command that you are using to execute your collection.

SureshRajpurohit85 commented 2 years ago

@malvikach , during runtime , i want to modify the collection variable using newman CLI command as its integral part of collection JSON, which i am not able to find option under newman. where as i can modify the env or global variable as they are part of different file

malvikach commented 2 years ago

@SureshRajpurohit85 I don't think it would be possible to edit the collection JSON during the runtime as of now. Could you show how you are editing the env or global variable. Maybe I can discuss the approach with the team to see some approaches for collection json too.

victorlsds commented 9 months ago

Is there any new status for this?