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. 

Anusha Pakalapati wrote:

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.

To test rest web service Url:

Start with writing test suites for REST APIs, go for the test automation tool. Today, Automated testing is considered as one of the most trending methodology in the field of software testing. Automation testing results in better test coverage, faster test results, etc. which indirectly makes the overall testing process more efficient as well as effective.

Application Programming Interface(API) testing is one of the important type of software testing, which is a part of integration testing, which is mainly used to determine the expectations for reliability, functionality, performance, etc. Also, APIs now serve as the primary interface to application logic.

Some of the best platform tools which are widely used for REST API testing are:

  1. SoapUI,
  2. TestingWhiz,
  3. SOATest
  4. TestMaker,
  5. Postman, etc.