3

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.

Dale K
  • 25,246
  • 15
  • 42
  • 71
qwerty
  • 887
  • 11
  • 33

1 Answers1

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.

Dale K
  • 25,246
  • 15
  • 42
  • 71
A.Joly
  • 2,317
  • 2
  • 20
  • 25