Thursday, June 4, 2015

Create our own HTTP response with Mocky.io

When we do day to day application testing, we might need to get a specific HTTP response from a web server.

For example, we need to test HTTP code 204 with no content in the body. In order to test this response, we need a web server that returns this type of response. Rather than setting up a web server and deploy an application to get our response, we can just create our custom response in www.mocky.io web site. We can configure our response using status code, content type and body.

Then it will give us a URL and it acts as a virtual web server which returns the response same as we configured.

Easy and Simple. Do your test without much hassle.

No comments:

Post a Comment