<< Back to Feature Tour
Ajax Applications
Ajax is a group of interrelated web development technologies (Asynchronous Javascript And XML) used to create interactive web applications. Rapise has powerful support for testing Ajax web applications, with support for serveral popular Javascript client-side libraries as well as direct support for the underlying technologies - Javascript and JSON.
Overview
Ajax, short for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications. The intent is to make web pages feel more responsive by exchanging small amounts of data with the server behind the scenes, so that the entire web page does not have to be reloaded each time the user makes a change. This is meant to increase the web page's interactivity, speed, and usability.
Testing AJAX applications can be challenging because the contents of the browser Document Object Model (DOM) will change dynamically based on the results of the asynchronous calls. Also the threading model of the browser means that the results of the AJAX calls are handled through Javascript callback methods, so often times a test will not know when to verify that a DOM element has been successfully updated.
Using Rapise for AJAX Applications
Rapise tests are written in Javascript so they are immediately well suited for testing AJAX applications because the test cases are using the same object constructs as the browser and can serialize and deserialize the data using the same JavaScript Object Notation (JSON) as the AJAX application.
In addition, by using the Custom Libraries feature of Rapise, you can create custom object recognition matchers for the different AJAX components used in your application, so that instead of having to deal with low-level browser DOM components, you can directly test the AJAX controls themselves.