Page 1 of 1

What can you say about making AJAX testing easy?

PostPosted: Mon Jul 08, 2013 10:58 am
by TRafael
What can you say about making AJAX testing easy?

Re: What can you say about making AJAX testing easy?

PostPosted: Mon Jul 22, 2013 11:18 am
by eValid
Actually, the main issue in testing an AJAX application is the fact that the asynchronous nature of a typical AJAX application means that it is likely that a "out of the box recording" [that is, one using a standard setup] will probably have some instances where, because of the variable length of time it takes some components to respond, the test will "de-synchronize." That it, the playback engine will get ahead of the application.

There is a simple recording protocol that we recommend that reduces the chances of this, and it goes like this:

(1) After having taken an action and seen something show up in the script window, wait until the page fully stabilizes.
(2) Choose something to highlight on the page (near the bottom is usually best) and do a "synchronize on visible text" step.
(3) THEN take the next action and you're back at (1) above.

The result of this is a script that includes the synchronzation step (2) above) right after every action command. This kind of script is essential self-synchronizing because it is recorded with the necessary synchronization steps already in place.

We find that this work in the VAST majority of cases.

--eValid Support