Locating Sync Points

Applying eValid to AJAX applications that require advanced DOM-based methods.

Locating Sync Points

Postby 3hqa » Thu Mar 11, 2010 11:21 am

What's the easy way to find where to add in AJAX synchronization commands in my script?
3hqa
 
Posts: 5
Joined: Thu Mar 11, 2010 11:15 am

Re: Locating Sync Points

Postby eValid » Tue Mar 16, 2010 6:26 am

3hqa wrote:What's the easy way to find where to add in AJAX synchronization commands in my script?

In a test script that is playing into an AJAX application there is the chance that the playback will de-synchronize when the AJAX parts of the page activity override eValid's built in page synchronization logic.

The method we use to find these point is to use two tricks: (1) We run the script with all of the internal delays set to a very small value (or even zero), and/or (2) we work the script through manually in single-step mode. In both cases we watch the eValid EventLog (with Detailed Timings turned ON) to observe the post-event traffic, and from that we can easily identify the script actions that set off events that caused later script actions to behave incorrectly. Those are the ones that need additional synchronization logic.

As far as we can tell no two AJAX application pages are implemented alike -- and as a result the modes by which they de-synchronize vary as well. But we have found that we can use the above method very effectively.

Once the script de-sync point is found it is a simple matter to add in a sync step. The most common methods is to insert a "Sync on Text String" using the insert-recording method.

--The eValid Team
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons