Complete a GET and POST call on a test API. Many test APIs have been posted for challenge 5. Ensure to include an assertion and see if you can get them to run automatically one after another.
Do a GET call against https://automationintesting.online/room/, you should get 1-N rooms returned. Assert on the correct status code and that the body has a room object.
Using postman to do this exercise and reference with small path in my project.
[GET]
Test 1: Get Method to get the value from API
Test 2: Verify the “criteria” value is in returns value
[POST]
Test 1: Get Method to get the value from API
Test 2: Verify the “token” value is in returns value
I used API Fortress for this. The UI tools, although a bit cluttered in my opinion, are really convenient after you get the hang of it, especially the if/then logic components.
@heather_reid, I did I left my impressions and a couple screenshots on this post. Overall I found API Fortress to be very neat and was able to write these tests fairly quickly. There was a bit of a learning curve to understand how the GUI interface works though.