After working with Postman for couple of weeks, I really wish it supported these things:
- Method to get folder name/path similar to
pm.info.requestName
(e.g.pm.info.folderName
,pm.info.folderPath
). - Method to get the script type, i.e. whether itβs executing a pre-request or post-request.
- Save all button/menu option.
- Ability to print console messages (console.log, etc.) without quotes.
- Ability to export environment info without secrets (just export variable names, but not sensitive values).
- Ability to add custom code snippets.
- Easier way of including external scripts from local files (vs. using CDs/evals).
- Support for cleanup scripts that would execute at the end of individual test or collection test run, so it would go: folder pre-requests β test 1 pre-request β test 1 request β folder post-requests β test 1 β folder pre-requests β test 2 pre-request β test 2 request β folder post-requests β test 2 β β¦ > test N β cleanup.
- Test dependency, e.g. test X depends on test A, so if you run test X (as stand-alone or in a collection), test A would always run before test X (somewhere in the sequence before it).
For the record, Postman is an amazing tool. We use it for regression testing of our REST APIs and it makes our dev/QA lives so much easier. Many thanks to the Postman team and community.