for a relatively large API test project (about 1000 requests) i need a generic way to access the folder name of any request in the test scripts. Due to the high effort hard coding the folder names manually is not an option.
I couldn’t find a way to do this. The only thing I found was how to create a collection object (http://www.postmanlabs.com/postman-collection/), but this won’t help me unfortunately.
It is possible to get the current request name by using:
What I am looking for is something like:
pm.info.folderName (I know this doesn't exist)
Has anyone any idea how to get the name of the request’s folder?