I am new to Postman and trying to determine if this tool can support our API automation testing requirements.
Today we are creating spreadsheets to determine each test scenario and the desired outcome. Then each test case is created in Postman, which is very time consuming and error prone. Then the call is made and the response is manually check to see if the test pass or not. Then someone goes back into Postman then creates automation. I know there is a better way to handle this in Postman.
I checked out this - https://blog.postman.com/using-csv-and-json-files-in-the-postman-collection-runner/
Appears I can use a csv file that is comma delimited, where the 1st row represents the variable and the data set is listed below for each API call. I can then assign a variable, in this case to each variable in the json body that I want changed for each API call.
I wasn’t able to find a ton of information, so thought I would ask my specific question here. I did see that Postman was able to validate each response to determine if the test passed or not. Can someone point me to some documentation on how I can setup Postman to determine if each data set passed or failed? I believe I read that I can include in the csv file my pass/fail criteria was in each response and I had to add some code?
I then want to automate the call, so it continues to use the same call and data set for regression testing.