As a newbie my javascript is still quite sketchy, so I have to iterate a lot to get it going.
I’ve been trying to build the body of a request based on the values in a csv file. The 25 runs per month is really killing me as I can’t test if the iteration is working as expected without the runner and silly things like syntax errors will use an entire run.
How do people (newish to javascript) test their scripts?
Is there a feature I haven’t found I can use to see the raw json it creates?
I can’t even get more runs by buying the basic paid tier, so I’m feeling really disincentivised from parting with any $ at all.
The Runner is only 1 way to run the Collection with a file. You could also use the Monitors feature or use Newman/Postman CLI from the command line to run the Collection.
What is it that you’re trying to do in the script? Are you able to mock out the data within the script and send a single request?
I needed to update ~3000 records from a csv file. Not all records needed every field updated, so there are a lot of empty cells.
I was trying to build a request body dynamically, including only the fields that were populated in the csv in the request body.
I needed to be able to include or exclude nested lists, as well as skip entire records if all fields were empty.
I was able to mock some example records and send single requests.
What I really want is the ability to see what the request body would look like before I send it.
Thank you for your suggestions, I will have a look into Monitors and Newman/Postman CLI.