Hello. I have some questions regarding the test runner. We use Postman at work to test API calls. We want to use it for performance/functional testing. However, we have to use specific authorization and specific headers in each test. My question:
Is it possible import authorization and/or headers into a test runner in a json file?
Is it possible to edit a test you’ve added to the runner before running the test?
Hey @simonkay1983 
Welcome to the Postman Community! 
You can use a datafile, either JSON or CSV, to inject values into the requests. Those values would be resolved in the request using the variable syntax `{{..}}` which would match the header or key names added to the file.
You might need to add some more context for the second question, what would you be looking to edit in the test before the run?
Hi Danny,
Thanks for the quick response. I’d be looking to edit the headers for the request.
If you have placeholders in the request, the datafile can be used to change the values during the run iterations.
I don’t have the full context of what you’re doing or how you have structured everything in your Collection to get a more targeted response.
If you try and few things out and then share what’s not working, we might be able to assist you further if more information is shared.
If I have 8 headers in my request, then I realize I need a 9th, is it possible to edit the request I’m using for the test runner to add the 9th? Is that done through a json/csv file or can I do that directly in the UI?
If that’s a change that’s needed, you can just add the additional header directly into the request that requires it. Once it’s saved, the runner will execute the next iterations with the changes.
Using data files is primarily for injecting different data sets into the Collection to drive the testing of different scenarios - You can also use it for other use cases too.
Are you running this with the Collection Runner through the UI or in a pipeline?
I am running it through the UI. So you’re saying you can change the request within the collection IN Postman’s UI?
You can change anything you have in the Collection, in the UI. Once you make the changes and save them, that will be what is executed in the Collection Runner.
I did not realize the collection has a “save” function option when you make changes. This could have saved me a lot of time in the past.
So to review - if I have a bearer token or some kind of authentication token, I can pass that in using a csv or json file in the test runner, and if I need to change what the collection holds in terms of headers, I can do that through the UI?
Every element has a save function on the UI, a request for example.
Unsaved changes are also indicated by an orange dot in the tab.
Additionally, there is an Autosave feature that can be enabled from the settings menu:
The value can be anything in the datafile, you just need to ensure that the key or title name in the file matches the variable name that you have in the Collection.
Any changes to anything in the Collection should be done in the UI, as it would have been when you were creating the Collection and the requests, in order to run them with the runner.