DEV Community

Discussion on: API Testing Tutorial: API Testing with RapidAPI

Collapse
 
mikeb91 profile image
Mikeb91

Hi, Mike here.
Just want to ask if it´s possible to compare and test if the answer the api delivers matches with the specified one on the API specification file. e.g.

The specification file says the answer for get: /products has to be an array, but the API´s response is an object. how can I make an assertion here?

Sorry if it´s a begginer question, but, I´m trying to get some help about it.

Thanks.