How to do black-box testing for AJAX Applications?
Web developers are rushing to use AJAX in their Web applications to enhance user-experience. However, testing is a pre-requisite for creating production-quality applications. In this blog, I discuss my attempts on writing automated blackbox tests for the popular Web 2.0 petstore application.
For now, I am disabling the testing of any of the AJAX calls, but limiting myself to walking through all the pages of the application, and invoking Non-AJAX methods. This is better than no testing, but obviously leaves most of the AJAX invocations untested. Not a good solution.
What do you use for black-box testing of your AJAX applications? Have you written an automated test suite using JUnit? Share your experiences as comments to this blog. Thanks for reading.