-
Notifications
You must be signed in to change notification settings - Fork 849
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read external files in pre-tests and tests requests #7210
Comments
Indeed we are considering an api to read files in away similar to how files are read for request body via a working directory. |
Any updates on this feature? |
Hi @shamasis Any updates on this feature, We use GraphQL where we have lots of mutations and queries against which automated tests are written, But we are struggling at the moment to deal with last and complex data sets. Thanks |
Any progress on this feature guys? An update would be great. I would love to be able to use this in Postman. |
This will be a great feature to have, any updates? |
Any updates on this issue?? |
I need to calculate the file md5 before calling the api, so I really need this feature, any updates on this issue? |
If this feature is going to be implemented, READ/WRITE External file, I'm going to devote my devops career to use Postman, till something will surpass its functionality. But for now, sticking to native testing frameworks, currently using Rest-Assured. |
... why is this still not available? I have found posts from 5~6 years ago with people asking for it. I'm tired of generating JWT tokens in my CLI and then manually updating my postman environment. Let us access system environment variables or let us load from a file. |
Waiting for this as well, I want to read AWS authorization credentials (key, secret, session token) from a local |
Waiting for this feature for long time now!!!! |
Newman and Postman App shares the same core code. As such these become exponentially difficult to build.
I don't see these come together soon a bit of more groundwork is needed how external files fit into the whole API lifecycle. Would love to continue this discussion around the bigger picture here and know more around what adds up. |
Really need to read a local file. |
It's been 8 years since it was requested in another ticket. Just saying. |
I also would like to read local files in pre-request scripts. In our project we use postman/newman to upload website provisioning data to STAGE/PROD environments. At the moment we successfully uploading data from CSV files. Now I would like to upload text files also. |
I have the same use-case as @phalverson (reading AWS credentials from the system file). This really doesn't seem like it should be such a difficult ask! |
Can't believe this really isn't implemented. |
All I want to do is make a signed JWT using the current date, which means needing to either read a file, or use an external module. The modules which support signing JWT's in Javascript land do not publish minified/umd versions of their code, so importing via the Right now I have a (very janky) approach by using So what we need are either: Failing either of these fails this product at being capable of working with modern API's that require oAuth / OIDC / Auth0 style interactions. Q.E.D. |
@Penumbra69 While this reply doesn't address Postman's underlying deficiency, the technique that I've been using to load external modules into pre-request scripts might help you from having to squeeze minified code into an environment variable: Since Postman does support invoking additional arbitrary requests in the pre-request script, I've also thought about—but never needed to implement—loading external files by running a local |
I have a test case just now where I need to automate a comparison to an expected result from some process' network folder dump... there's just no easy way currently with Postman, bummed |
For those in the future to stumble upon this thread, I made a little utility in python that can ease some of the pains for the lack of the feature. Please take a look at: https://github.com/Darkona/Tardigrade cheers |
Hello all, Kinda new here and been stumbling through a few of these issues here on Github regarding this "external files" matter. I've now seen it mentioned a couple of times, including on StackOverflow, the idea of setting up your local HTTP server to be able to sneak in the file. However, I do wonder how that would work once you have to integrate your API tests into a CI/CD scenario? I'm not that technical but it seems to me that's a no go? Another thing that comes to mind is that if you are that technical to be setting up local servers and such...then why bother automating your tests using a tool like Postman, instead of just going straight up programmatically w/ something like axios/supertest/got etc.? Thanks for the insights folks. |
Hi,
I'm developping a postman collection for do a regression-test on my API.
I'm validating all my responses schemes with tv4.
I run some similar queries whose answers are usually very close. Therefore the validation schemes are the same.
How can I outsource my schemes in order to simplify my collection and simplify the corrections?
Best Regards,
Yann
The text was updated successfully, but these errors were encountered: