Find Where to Sync?

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

Find Where to Sync?

Postby Moe369 » Tue Nov 17, 2009 11:35 pm

How do you find where to put in those AJAX sync commands you claim are so effective?
Moe369
 
Posts: 19
Joined: Thu May 29, 2008 3:50 pm

Re: Find Where to Sync?

Postby eValid » Tue Dec 01, 2009 8:21 am

Moe369 wrote:How do you find where to put in those AJAX sync commands you claim are so effective?

The synchronization commands you're thinking of here probably are the Validate and Synchronize on DOM Object commands.

What we find is the best procedure for perfecting tests that apply to AJAX applications is to (i) record from life (ii) run the test in single-step mode while studying the EventLog (with detailed timings turned on, so you see the fine detail of page loading), (iii) identifying which commands generate post-completion HTTP traffic (you can see that clearly in the EventLog), and then
(iv) inserting the right synchronization command at that point.

That's the easy part, finding where to add synchronizations.

The hard part is to find the right thing to synchronize on, and on this point we have to admit that if we could find a general rule that works in all cases then we certainly would be shouting that from the hilltops.

But we can't and so you probably need to (i) go to the page that is in the process of loading and (ii) look around in the page with the PageMap to identify a "strutural" or "temporal" invarient on the page, for which sourceIndex you can synchronize on some element property taking on some particular value.

Check the website...we have numerous examples of this. Let us know if you have a particular page and we'll try to ferret out the right thing to do for that particular page. Remember, they are all different (or so we find).

--The eValidTeam
eValid
 
Posts: 2395
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