How to export a path to local files from Postman collection to the Newman?

Hello,
I am using local files in the PUT request like that:


ā€™
It works perfectly in the Postman but I want to run a whole collection in the Newman and there is a problem.

My operating system is Windows but I use Ubuntu for Windows 10, it is an application which allows to use bash terminal on the Windows. Due to that fact, the path which is exported by Postman must contain at the beginning: /mnt/path_exported_by_Postman

I wonder how can I run Postman collection which uses local files in the Newman which works on Ubuntu for Windows 10

Hi @mkolomanski

Thank you for your patience :slight_smile: You should be able to change the "Working Directory" for the Postman collections from Settings, which should help you achieve the results you are looking for. Please refer to this article below to know more on the same.

https://support.getpostman.com/hc/en-us/articles/360023574653

Hope this helps!

1 Like