I want to automate the process of sending get requests to an API and save the responses in a JSON file. I have researched a lot online and haven't found anything. I have created a collection and run it, but how do I automate it.
Asked
Active
Viewed 2,591 times
3
-
1have you tried newman? – Ray Oct 31 '17 at 00:49
-
@Ray did it using newman and batch files. Thanks though. :) – qwerty Oct 31 '17 at 12:26
-
@Ray is there anyway to download a json file with the actual response for get requests using newman?? – qwerty Oct 31 '17 at 13:49
1 Answers
0
When you have your tests collection built in Postman, you shall run it with newman (see useful options here, this link helped me a lot !).
If your collection can be run with Postman runner, it should work perfectly. I haven't tried to generate reports in JSON but it works fine for HTML and JUnit style reports ... and you can set a specific reporting parameter to have results set in a JSON file.