1.

How to unit test Web API?

Answer»

Using Web API tools like Fiddler, we can perform UNIT TESTING in Web API. Fiddler is basically a free debugging proxy for any browser that can be USED to compose and execute various HTTP requests to Web API and CHECK HTTP response. It is simply used for testing restful web services. It allows one to inspect and check both incoming and outgoing data to monitor and modify requests and responses before the browser receives them.  Below is given some SETTING that is needed to be done fiddler:

Fiddler – Compose Tab -> Enter Request Headers -> Enter Request Body and then execute.



Discussion

No Comment Found