Testing HTTP

In Chapter 12Integrating Backend Data Services, we learned about integrating backend services and also learned about HTTPModule and HTTPClient. We also learned how to make HTTP requests to the server and process the responses. 

In this section, we will learn how to write test scripts to test HTTP requests and responses. We will continue to use the same project we created in this chapter—the AutoStop project. Before we proceed further, it's important to have the REST API endpoints ready so that we can use them in our application.

We will learn how to use the public API, https://jsonplaceholder.typicode.com/, which is available on the internet for free. We will also create a local server to return a mock JSON response from a ...

Get Web Development with Angular and Bootstrap - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.