Testing AJAX web applications is very difficult. Ajax relies mainly on requests to the server ( and responses received from them). We can't test what is sent and received from the server. The way to solve these problems is to use HTTP Proxy.
A HTTP proxy is a small program which intercepts between the client requests and responses to and from the server. The browser sends a request and the HTTP proxy receives the request. It then sends the request to the server and when it is processed, the response is sent back to the HTTP proxy. It is then sent to the browser. In addition to the interception job, it also records the information transfer. Fiddler is one such HTTP proxy tool which is used for testing and debugging Ajax applications.