Reputation: 55
I have a REST API call, which will take Multipart Data as Content-Type with a file(zip,rar,etc) and JSON Object as parameters shown below
The Request Structure in Postman
Now i wanted to write an automated test script for this API to run on Postman, but facing a problem in uploading a file during the Execution of the Collections.
Kindly share any views on how to upload a file during the Test execution.
Upvotes: 2
Views: 1320
Reputation: 3959
It has to be done with Newman. The Postman docs and blog explain how:
Upvotes: 1