How to deal with AJAX apps with synchronization errors

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

How to deal with AJAX apps with synchronization errors

Postby DianeT » Tue Sep 19, 2017 8:59 am

Morning.

How does eValid handle page refreshes...any thoughts about that?

I'm testing a complex AJAX application and I'm getting errors with synchronization.

Much Appreciated.
DianeT
 
Posts: 1
Joined: Tue Sep 19, 2017 8:52 am

Re: How to deal with AJAX apps with synchronization errors

Postby eValid » Wed Sep 20, 2017 10:08 am

DianeT wrote:Morning.

How does eValid handle page refreshes...any thoughts about that?

I'm testing a complex AJAX application and I'm getting errors with synchronization.

Much Appreciated.


Welcome aboard DianeT!

When you have AJAX applications running please remember:

There is active JavaScript (J Script) executing in the browser that can interact with the server and the browser.

The eValid product has Reload command: (Reload wid) where wid is the window id sequence number.

If you leave this parameter out, eValid assumes wid = 0.

This refreshes the window the same way the refresh button refreshes any browser.

If the underlying DOM has been manipulated and/or changed by the AJAX activity then you will see the "most recent" changes in the rendered screen.

In some cases it is wise to issue a Reload wid command before searching the DOM for a specific page element, but this is not perfect.

Instead, you may want to rely on am explicit synchronization command, as explained here:

http://e-valid.com/Products/Documentati ... guide.html

This will make sure that your test actions start at a known place, but if the AJAX updating is happening after you achieve that specific synchronization the you may STILL have aberrant behavior.

The bottom line is, until you have run your test script many times and convinced yourself that it is reliable, you have no guarantee.

Even then, we have seen cases where ultra-reliable test scripts that literally bristle with synchronization steps fail from time to time.

Such are the vagaries of web application testing.


-- eValid Support
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