Unit Testing Framework

Unit Testing Framework

  

Hi,

I am following unit testing framework to test applications. I am not sure about how to test rest web service Url.

My question is: For the application, We are getting data from REST API from different source and using that data in our application. How to test the application when calling from Rest. Is there any documentation detailed way of testing?

Please share it to me.

Thanks.

Anusha,

REST APIs are a little bit less restrictive in terms of unit testing in OutSystems because you can use any REST unit testing framework to test the API. I have used the tool Postman in the past to do some testing:

https://dzone.com/articles/testing-apis-using-postman

The reason it is so much less restrictive is that REST APIs are accessed over HTTP which allows you to completely decouple the service from the consumer. Anything that can run unit tests and access REST APIs is capable of testing REST APIs.